Package org.gbif.api.util
Class Range<T extends Comparable<? super T>>
java.lang.Object
org.gbif.api.util.Range<T>
Simplified version of guava's
Range.-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Comparable<? super T>>
Range<T>closed(T from, T to) Factory method.booleanReturnstrueifvalueis within the bounds of this range.booleanReturnstrueif the bounds ofotherdo not extend outside the bounds of this range.booleanReturnstrueif this range has a lower endpoint.booleanReturnstrueif this range has an upper endpoint.toString()
-
Method Details
-
closed
Factory method. -
hasLowerBound
Returnstrueif this range has a lower endpoint. -
hasUpperBound
Returnstrueif this range has an upper endpoint. -
contains
Returnstrueifvalueis within the bounds of this range. -
encloses
Returnstrueif the bounds ofotherdo not extend outside the bounds of this range. -
lowerEndpoint
-
upperEndpoint
-
toString
-