java.lang.Object
inet.ipaddr.AddressComparator
inet.ipaddr.AddressComparator.CountComparator
- All Implemented Interfaces:
Comparator<AddressItem>
- Enclosing class:
AddressComparator
CountComparator first compares two address items by count, first by bit count for dissimilar items,
AddressItem.getBitCount()
, then by count of values for similar items, (AddressItem.getCount()
) and if both match,
defers to the address item values for comparison.
Also see AddressComparator.ValueComparator
- Author:
- sfoley
-
Nested Class Summary
Nested classes/interfaces inherited from class inet.ipaddr.AddressComparator
AddressComparator.CountComparator, AddressComparator.ValueComparator
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class inet.ipaddr.AddressComparator
compare, compare, compare, compare, compare, compare, compare
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
CountComparator
public CountComparator() -
CountComparator
public CountComparator(boolean equalsConsistent)
-