public class ByteArrayTagOrder
extends java.lang.Object
implements java.util.Comparator<byte[]>, java.io.Serializable
Constructor and Description |
---|
ByteArrayTagOrder() |
Modifier and Type | Method and Description |
---|---|
int |
compare(byte[] bytes1,
byte[] bytes2)
Compare two byte arrays, by the order of their tags,
as defined in ITU-T X.680, sec. 6.4.
|
public final int compare(byte[] bytes1, byte[] bytes2)
compare
in interface java.util.Comparator<byte[]>
bytes1
- first byte array to compare.bytes2
- second byte array to compare.