Package com.exedio.cope.pattern
Class Range<E extends Comparable<E>>
java.lang.Object
com.exedio.cope.pattern.Range<E>
- All Implemented Interfaces:
Serializable
If the value for
from is null this means, that the range contains all values less or equal to to.
If the value for () to is null this means, that the range contains all values greater or equal to from.
If both the value for from and to is null this means,
that the range contains all values.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleangetFrom()getTo()inthashCode()static <E extends Comparable<E>>
Range<E>newRange(E from, E to) Deprecated.UsevalueOf(Comparable,Comparable)insteadtoString()static <E extends Comparable<E>>
Range<E>valueOf(E from, E to)
-
Constructor Details
-
Range
Deprecated.UsevalueOf(Comparable, Comparable)instead.
-
-
Method Details
valueOf(Comparable, Comparable)instead.