Class ObjectToBeSorted

  • Direct Known Subclasses:
    GroupToBeSorted

    public class ObjectToBeSorted
    extends 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.)
    • Field Detail

      • value

        public Item value
      • originalPosition

        public int originalPosition
    • Constructor Detail

      • ObjectToBeSorted

        public ObjectToBeSorted​(int numberOfSortKeys)