Class Signal.SimpleSignalCompare

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

    public static class Signal.SimpleSignalCompare
    extends java.lang.Object
    implements java.util.Comparator<Signal>
    Compares using type, query, docId, and principal. This compare is meant to provide utility for signal services, the standard compareTo method should be used for sorting.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(Signal o1, Signal o2)  
      • 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

      • SimpleSignalCompare

        public SimpleSignalCompare()
    • Method Detail

      • compare

        public int compare​(Signal o1,
                           Signal o2)
        Specified by:
        compare in interface java.util.Comparator<Signal>