Class RMValueSort

  • All Implemented Interfaces:
    Archivable, RMJSONArchiver.GetKeys, java.lang.Cloneable, java.util.Comparator

    public class RMValueSort
    extends RMSort
    This is a sort subclass to support sorting objects by their relative position in an array of values.
    • Constructor Detail

      • RMValueSort

        public RMValueSort​(java.lang.String aKey,
                           java.util.List aValuesList)
        Creates a new value sort.
    • Method Detail

      • compare

        public int compare​(java.lang.Object obj1,
                           java.lang.Object obj2)
        Compare objects with given RMSort.
        Specified by:
        compare in interface java.util.Comparator
        Overrides:
        compare in class RMSort