Class 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 Detail

      • IndexedElement

        public IndexedElement​(T element,
                              int index,
                              boolean pinned)
    • Method Detail

      • getElement

        public T getElement()
      • getIndex

        public int getIndex()
      • isPinned

        public boolean isPinned()