public static final class Ordering.StringOrdering extends Ordering<ByteString>
This is the (total) lexicographical ordering imposed by the method
String.compareTo(String)
.
Ordering.NumericOrdering, Ordering.StringOrdering
Modifier and Type | Method and Description |
---|---|
int |
compare(ByteString a,
ByteString b) |
boolean |
eq(ByteString a,
ByteString b)
Returns
true if a is equal to b in this ordering. |
boolean |
le(ByteString a,
ByteString b)
Returns
true if a is lesser than or equal to b in this ordering. |
boolean |
lt(ByteString a,
ByteString b)
Returns
true if a is lesser than b in this ordering. |
isRawEqual, of
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public boolean eq(ByteString a, ByteString b)
Ordering
true
if a
is equal to b
in this ordering.eq
in class Ordering<ByteString>
a
- first argument, must not be null
b
- second argument, must not be null
true
iff a
is equal to b
in this orderingpublic boolean lt(ByteString a, ByteString b)
Ordering
true
if a
is lesser than b
in this ordering.lt
in class Ordering<ByteString>
a
- first argument, must not be null
b
- second argument, must not be null
true
iff a
is lesser than b
in this orderingpublic boolean le(ByteString a, ByteString b)
Ordering
true
if a
is lesser than or equal to b
in this ordering.le
in class Ordering<ByteString>
a
- first argument, must not be null
b
- second argument, must not be null
true
iff a
is lesser than or equal to equal to b
in this orderingpublic int compare(ByteString a, ByteString b)
Copyright © 2016. All rights reserved.