public class ByteArrayComparator extends Object implements Comparator<byte[]>
InetAddress.getAddress()
and can be used to
compare any pair of IPv4 and/or IPv6 addresses.Constructor and Description |
---|
ByteArrayComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(byte[] a,
byte[] b) |
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(byte[] a, byte[] b)
compare
in interface Comparator<byte[]>
Copyright © 2016. All rights reserved.