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.boolean
Returnstrue
ifvalue
is within the bounds of this range.boolean
Returnstrue
if the bounds ofother
do not extend outside the bounds of this range.boolean
Returnstrue
if this range has a lower endpoint.boolean
Returnstrue
if this range has an upper endpoint.toString()
-
Method Details
-
closed
Factory method. -
hasLowerBound
Returnstrue
if this range has a lower endpoint. -
hasUpperBound
Returnstrue
if this range has an upper endpoint. -
contains
Returnstrue
ifvalue
is within the bounds of this range. -
encloses
Returnstrue
if the bounds ofother
do not extend outside the bounds of this range. -
lowerEndpoint
-
upperEndpoint
-
toString
-