Class DataStoreUtil.AscendingByIntegerDataStore

  • All Implemented Interfaces:
    java.util.Comparator<DBIDRef>
    Enclosing class:
    DataStoreUtil

    public static class DataStoreUtil.AscendingByIntegerDataStore
    extends java.lang.Object
    implements java.util.Comparator<DBIDRef>
    Sort objects by a integer relation
    Author:
    Erich Schubert, Julian Erhard
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private IntegerDataStore scores
      Scores to use for sorting.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(DBIDRef id1, DBIDRef id2)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Comparator

        equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
    • Constructor Detail

      • AscendingByIntegerDataStore

        public AscendingByIntegerDataStore​(IntegerDataStore scores)
        Constructor.
        Parameters:
        scores - Scores for sorting
    • Method Detail

      • compare

        public int compare​(DBIDRef id1,
                           DBIDRef id2)
        Specified by:
        compare in interface java.util.Comparator<DBIDRef>