public class ByteArrayTagOrder
extends java.lang.Object
implements java.util.Comparator<byte[]>
| 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.
|
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.bytes1 < bytes2,
0 if bytes1 == bytes2,
positive number if bytes1 > bytes2.ClassCastException - if either argument is not a byte array.