Top Description Inners Fields Constructors Methods
com.google.common.collect

pack-priv abstract Class Cut<C extends Comparable<T>>

extends Object
implements Comparable<Cut<C extends Comparable<T>>>, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, java.lang.Comparable
Known Direct Subclasses
com.google.common.collect.Cut.BelowAll, com.google.common.collect.Cut.AboveAll, com.google.common.collect.Cut.BelowValue, com.google.common.collect.Cut.AboveValue
Annotations
@SuppressWarnings:rawtypes
@GwtCompatible
@ElementTypesAreNonnullByDefault
Static Imports
com.google.common.base.Preconditions.checkNotNull

Implementation detail for the internal structure of Range instances. Represents a unique way of "cutting" a "number line" (actually of instances of type 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 Cut instances.
Author
Kevin Bourrillion

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class
Cut.AboveValue<C extends Comparable<T>>

private static class
private static class
Cut.BelowValue<C extends Comparable<T>>

Field Summary

Modifier and TypeField and Description
pack-priv final C
private static final long

Constructor Summary

AccessConstructor and Description
pack-priv
Cut(C endpoint)

Method Summary

Modifier and TypeMethod and Description
pack-priv static <C extends Comparable<T>> Cut<C>
pack-priv static <C extends Comparable<T>> Cut<C>
aboveValue(C endpoint)

pack-priv static <C extends Comparable<T>> Cut<C>
pack-priv static <C extends Comparable<T>> Cut<C>
belowValue(C endpoint)

pack-priv Cut<C>
public int
compareTo(Cut<C>
the object to be compared.
that
)

Implements java.lang.Comparable.compareTo.

Compares this object with the specified object for order.
pack-priv abstract void
pack-priv abstract void
pack-priv C
public boolean
equals(Object
the reference object with which to compare.
obj
)

Overrides java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.
pack-priv abstract C
public abstract int
hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code value for this object.
pack-priv abstract boolean
isLessThan(C value)

pack-priv abstract C
pack-priv abstract BoundType
pack-priv abstract BoundType
pack-priv abstract Cut<C>
pack-priv abstract Cut<C>
Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAlltoStringwaitwaitwait