Interface AbstractMoveElementHandler.IListElementIndexComputer
-
- Enclosing class:
- AbstractMoveElementHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface protected static interface AbstractMoveElementHandler.IListElementIndexComputer
The new list element index computer.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
compute(List<org.eclipse.emf.ecore.EObject> allElements, List<org.eclipse.emf.ecore.EObject> selectedElements, org.eclipse.emf.ecore.EObject element)
Computes the new index of the element considering the provided all list elements and the selected elements.
-
-
-
Method Detail
-
compute
int compute(List<org.eclipse.emf.ecore.EObject> allElements, List<org.eclipse.emf.ecore.EObject> selectedElements, org.eclipse.emf.ecore.EObject element)
Computes the new index of the element considering the provided all list elements and the selected elements. Method is invoked for allelement
form the list ofselectedElements
.- Parameters:
allElements
- a list of all collection elements, cannot benull
selectedElements
- a list of selected elements, cannot benull
element
- the element to compute index for, cannot benull
- Returns:
- the new index of the element
-
-