Class ObjectToBeSorted<T>

  • Direct Known Subclasses:
    GroupToBeSorted, ItemToBeSorted

    public class ObjectToBeSorted<T>
    extends java.lang.Object
    This class represents a member of a sequence that is being sorted. The sequence may contain items, tuples, groups, or anything else. An instance of this class holds the object itself, the values of the sort keys, and the original position of the item in the input sequence (which is needed to achieve stable sorting.)
    • Constructor Summary

      Constructors 
      Constructor Description
      ObjectToBeSorted​(int numberOfSortKeys)  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • value

        public T value
      • originalPosition

        public int originalPosition
    • Constructor Detail

      • ObjectToBeSorted

        public ObjectToBeSorted​(int numberOfSortKeys)