Class RandomAccessData.UnsignedLexicographicalComparator

  • All Implemented Interfaces:
    java.io.Serializable, java.util.Comparator<RandomAccessData>
    Enclosing class:
    RandomAccessData

    public static final class RandomAccessData.UnsignedLexicographicalComparator
    extends java.lang.Object
    implements java.util.Comparator<RandomAccessData>, java.io.Serializable
    A Comparator that compares two byte arrays lexicographically. It compares values as a list of unsigned bytes. The first pair of values that follow any common prefix, or when one array is a prefix of the other, treats the shorter array as the lesser. For example, [] < [0x01] < [0x01, 0x7F] < [0x01, 0x80] < [0x02] < POSITIVE INFINITY.

    Note that a token type of positive infinity is supported and is greater than all other RandomAccessData.

    See Also:
    Serialized Form