A
- the type of objects that this object may be compared against.public static class ComparableUtils.ComparableCheckBuilder<A extends Comparable<A>> extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
between(A b,
A c)
|
boolean |
betweenExclusive(A b,
A c)
|
boolean |
equalTo(A b)
Checks if the object passed to
ComparableUtils.is(A) is equal to b |
boolean |
greaterThan(A b)
Checks if the object passed to
ComparableUtils.is(A) is greater than b |
boolean |
greaterThanOrEqualTo(A b)
Checks if the object passed to
ComparableUtils.is(A) is greater than or equal to b |
boolean |
lessThan(A b)
Checks if the object passed to
ComparableUtils.is(A) is less than b |
boolean |
lessThanOrEqualTo(A b)
Checks if the object passed to
ComparableUtils.is(A) is less than or equal to b |
public boolean between(A b, A c)
b
- the object to compare to the base objectc
- the object to compare to the base objectpublic boolean betweenExclusive(A b, A c)
b
- the object to compare to the base objectc
- the object to compare to the base objectpublic boolean equalTo(A b)
ComparableUtils.is(A)
is equal to b
b
- the object to compare to the base objectComparable.compareTo(T)
is equal to 0
public boolean greaterThan(A b)
ComparableUtils.is(A)
is greater than b
b
- the object to compare to the base objectComparable.compareTo(T)
is greater than 0
public boolean greaterThanOrEqualTo(A b)
ComparableUtils.is(A)
is greater than or equal to b
b
- the object to compare to the base objectComparable.compareTo(T)
is greater than or equal to 0
public boolean lessThan(A b)
ComparableUtils.is(A)
is less than b
b
- the object to compare to the base objectComparable.compareTo(T)
is less than 0
public boolean lessThanOrEqualTo(A b)
ComparableUtils.is(A)
is less than or equal to b
b
- the object to compare to the base objectComparable.compareTo(T)
is less than or equal to 0
Copyright © 2001–2020 The Apache Software Foundation. All rights reserved.