Cut<C extends Comparable> class
abstract
Implementation detail for the internal structure of {@link Range} instances. Represents a unique way of "cutting" a "number line" (actually of instances of type {@code C}, not necessarily "numbers") into two sections; this can be done below a certain value, above a certain value, below all values or above all values. With this object defined in this way, an interval can always be represented by a pair of {@code Cut} instances.
- Implemented types
-
- Comparable<
Cut< C> >
- Comparable<
- Implementers
Constructors
- Cut(C? endpoint)
Properties
- endpoint → C?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
canonical(
DiscreteDomain< C> domain) → Cut<C> -
compareTo(
Cut< C> that) → int -
Compares this object to another object.
override
-
describeAsLowerBound(
StringBuffer sb) → void -
describeAsUpperBound(
StringBuffer sb) → void -
greatestValueBelow(
DiscreteDomain< C> domain) → Comparable? -
isLessThan(
C value) → bool -
leastValueAbove(
DiscreteDomain< C> domain) → Comparable? -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
typeAsLowerBound(
) → BoundType -
typeAsUpperBound(
) → BoundType -
withLowerBoundType(
BoundType boundType, DiscreteDomain< C> domain) → Cut<C> -
withUpperBoundType(
BoundType boundType, DiscreteDomain< C> domain) → Cut<C>
Operators
-
operator ==(
Object obj) → bool -
The equality operator.
override
Static Methods
-
aboveAll<
C extends Comparable> () → Cut< C> -
aboveValue<
C extends Comparable> (C endpoint) → Cut< C> -
belowAll<
C extends Comparable> () → Cut< C> -
belowValue<
C extends Comparable> (C endpoint) → Cut< C>