A - the type of objects that this object may be compared against.public static class ComparableUtils.ComparableCheckBuilder<A extends java.lang.Comparable<A>>
extends java.lang.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 bb - the object to compare to the base objectComparable.compareTo(T) is equal to 0public boolean greaterThan(A b)
ComparableUtils.is(A) is greater than bb - the object to compare to the base objectComparable.compareTo(T) is greater than 0public boolean greaterThanOrEqualTo(A b)
ComparableUtils.is(A) is greater than or equal to bb - the object to compare to the base objectComparable.compareTo(T) is greater than or equal to 0public boolean lessThan(A b)
ComparableUtils.is(A) is less than bb - the object to compare to the base objectComparable.compareTo(T) is less than 0public boolean lessThanOrEqualTo(A b)
ComparableUtils.is(A) is less than or equal to bb - the object to compare to the base objectComparable.compareTo(T) is less than or equal to 0Copyright © 2010 - 2023 Adobe. All Rights Reserved