public class InetAddressComparator extends Object implements Comparator
Constructor and Description |
---|
InetAddressComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(Object arg0,
Object arg1)
Compares two IP4Addresses.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public int compare(Object arg0, Object arg1)
123.0.0.1 > 122.255.255.255
123.0.1.1 > 123.0.1.0
123.0.0.001 == 123.0.0.1
compare
in interface Comparator
arg0
- the first address.arg1
- the second address.Copyright © 2004–2018 52north.org. All rights reserved.