Interface IContainableElementsSorter
-
- All Known Subinterfaces:
IDecisionVariableContainer
- All Known Implementing Classes:
AttributeAssignment,BasicDecisionVariableContainer,Compound,FullDecisionVariableContainer
public interface IContainableElementsSorterDefines an interface for classes which are able to sort their elements according to a given comparator.- Author:
- Holger Eichelberger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsortContainedElements(java.util.Comparator<ContainableModelElement> comp)Sorts the contained elements (and creates the related datastructure if needed) according to the specified comparator.
-
-
-
Method Detail
-
sortContainedElements
void sortContainedElements(java.util.Comparator<ContainableModelElement> comp)
Sorts the contained elements (and creates the related datastructure if needed) according to the specified comparator. Please note the following requirements for applying this method:- All Elements which were added before this operation must still be member of this project after executing this operation.
- Comments related to an element must occur before the element in the final sequence.
- Parameters:
comp- a comparator which fulfills the requirements above
-
-