Class PublicKeyBabelNodeComparator
java.lang.Object
pt.unl.fct.di.novasys.babel2.channels.PublicKeyBabelNodeComparator
- All Implemented Interfaces:
Comparator<PublicKeyBabelNode>
Canonical
Comparator for PublicKeyBabelNode instances based on the
lexicographical comparison of their encoded public key bytes.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Comparator<PublicKeyBabelNode> Singleton comparator instance. -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Comparator
equals, max, min, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
INSTANCE
Singleton comparator instance.
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<PublicKeyBabelNode>
-