Package com.iplanet.security.util
Class ByteArrayTagOrder
- java.lang.Object
-
- com.iplanet.security.util.ByteArrayTagOrder
-
- All Implemented Interfaces:
Comparator
public class ByteArrayTagOrder extends Object implements Comparator
-
-
Constructor Summary
Constructors Constructor Description ByteArrayTagOrder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(Object obj1, Object obj2)Compare two byte arrays, by the order of their tags, as defined in ITU-T X.680, sec. 6.4.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
compare
public final int compare(Object obj1, Object obj2)
Compare two byte arrays, by the order of their tags, as defined in ITU-T X.680, sec. 6.4. (First compare tag classes, then tag numbers, ignoring the constructivity bit.)- Specified by:
comparein interfaceComparator- Parameters:
obj1- first byte array to compare.obj2- second byte array to compare.- Returns:
- negative number if obj1 < obj2, 0 if obj1 == obj2, positive number if obj1 > obj2.
-
-