Class RefComparator

  • All Implemented Interfaces:
    java.util.Comparator<Ref>

    public class RefComparator
    extends java.lang.Object
    implements java.util.Comparator<Ref>
    This comparator only cares about the tuple of namespace and id.
    • Constructor Summary

      Constructors 
      Constructor Description
      RefComparator()  
    • Method Summary

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

      • RefComparator

        public RefComparator()
    • Method Detail

      • compare

        public int compare​(Ref a,
                           Ref b)
        Specified by:
        compare in interface java.util.Comparator<Ref>