@Override public final boolean equals(Object o) { if(!(o instanceof MD5Digest)) return false; MD5Digest that = (MD5Digest)o; // handles nulls properly return FBUtilities.compareUnsigned(this.bytes, that.bytes, 0, 0, this.bytes.length, that.bytes.length) == 0; }
@Override public final boolean equals(Object o) { if(!(o instanceof MD5Digest)) return false; MD5Digest that = (MD5Digest)o; // handles nulls properly return FBUtilities.compareUnsigned(this.bytes, that.bytes, 0, 0, this.bytes.length, that.bytes.length) == 0; }
@Override public final boolean equals(Object o) { if(!(o instanceof MD5Digest)) return false; MD5Digest that = (MD5Digest)o; // handles nulls properly return FBUtilities.compareUnsigned(this.bytes, that.bytes, 0, 0, this.bytes.length, that.bytes.length) == 0; }
public int compareTo(Token other) { BytesToken o = (BytesToken) other; return FBUtilities.compareUnsigned(token, o.token, 0, 0, token.length, o.token.length); }
public int compareTo(Token other) { BytesToken o = (BytesToken) other; return FBUtilities.compareUnsigned(token, o.token, 0, 0, token.length, o.token.length); }
public int compareTo(Token other) { BytesToken o = (BytesToken) other; return FBUtilities.compareUnsigned(token, o.token, 0, 0, token.length, o.token.length); }
@Override public final boolean equals(Object o) { if(!(o instanceof MD5Digest)) return false; MD5Digest that = (MD5Digest)o; // handles nulls properly return FBUtilities.compareUnsigned(this.bytes, that.bytes, 0, 0, this.bytes.length, that.bytes.length) == 0; }
public static int compareUnsigned(byte[] bytes1, byte[] bytes2) { return compareUnsigned(bytes1, bytes2, 0, 0, bytes1.length, bytes2.length); }
public int compareTo(Token other) { BytesToken o = (BytesToken) other; return FBUtilities.compareUnsigned(token, o.token, 0, 0, token.length, o.token.length); }
@Override public final boolean equals(Object o) { if(!(o instanceof MD5Digest)) return false; MD5Digest that = (MD5Digest)o; // handles nulls properly return FBUtilities.compareUnsigned(this.bytes, that.bytes, 0, 0, this.bytes.length, that.bytes.length) == 0; }
public static int compareUnsigned(byte[] bytes1, byte[] bytes2) { return compareUnsigned(bytes1, bytes2, 0, 0, bytes1.length, bytes2.length); }
public static int compareUnsigned(byte[] bytes1, byte[] bytes2) { return compareUnsigned(bytes1, bytes2, 0, 0, bytes1.length, bytes2.length); }
public static int compareUnsigned(byte[] bytes1, byte[] bytes2) { return compareUnsigned(bytes1, bytes2, 0, 0, bytes1.length, bytes2.length); }
public static int compareUnsigned(byte[] bytes1, byte[] bytes2) { return compareUnsigned(bytes1, bytes2, 0, 0, bytes1.length, bytes2.length); }
private InetAddress minEndpoint() { return FBUtilities.compareUnsigned(r1.endpoint.getAddress(), r2.endpoint.getAddress()) < 0 ? r1.endpoint : r2.endpoint; }
private InetAddress maxEndpoint() { return FBUtilities.compareUnsigned(r1.endpoint.getAddress(), r2.endpoint.getAddress()) < 0 ? r2.endpoint : r1.endpoint; }