Class IndexedElement<T>
- java.lang.Object
-
- org.kie.server.services.taskassigning.planning.util.IndexedElement<T>
-
public class IndexedElement<T> extends Object
Facilitates the ordering of elements given an index but also the faculty of being pinned. Pinned elements goes always before non-pinned elements and ordered by index. Non-pinned elements goes always after the pinned elements and ordered by index.
-
-
Constructor Summary
Constructors Constructor Description IndexedElement(T element, int index, boolean pinned)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> voidaddInOrder(List<IndexedElement<T>> indexedElements, IndexedElement<T> element)TgetElement()intgetIndex()booleanisPinned()
-
-
-
Constructor Detail
-
IndexedElement
public IndexedElement(T element, int index, boolean pinned)
-
-
Method Detail
-
getElement
public T getElement()
-
getIndex
public int getIndex()
-
isPinned
public boolean isPinned()
-
addInOrder
public static <T> void addInOrder(List<IndexedElement<T>> indexedElements, IndexedElement<T> element)
-
-