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

public final Enum BoundType

extends Enum<BoundType>
Class Inheritance
Annotations
@GwtCompatible
@ElementTypesAreNonnullByDefault
Imports
com.google.common.annotations.GwtCompatible

Indicates whether an endpoint of some range is contained in the range itself ("closed") or not ("open"). If a range is unbounded on a side, it is neither open nor closed on that side; the bound simply does not exist.
Since
10.0

Field Summary

Modifier and TypeField and Description
public static final BoundType
pack-priv final boolean
public static final BoundType
OPEN

The endpoint value is not considered part of the set ("exclusive").

Constructor Summary

AccessConstructor and Description
private
BoundType(boolean inclusive)

Method Summary

Modifier and TypeMethod and Description
pack-priv static BoundType
forBoolean(boolean inclusive)

Returns the bound type corresponding to a boolean value for inclusivity.

public static BoundType
public static BoundType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

CLOSEDback to summary
public static final BoundType CLOSED
inclusiveback to summary
pack-priv final boolean inclusive
OPENback to summary
public static final BoundType OPEN

The endpoint value is not considered part of the set ("exclusive").

Constructor Detail

BoundTypeback to summary
private BoundType(boolean inclusive)

Method Detail

forBooleanback to summary
pack-priv static BoundType forBoolean(boolean inclusive)

Returns the bound type corresponding to a boolean value for inclusivity.

valueOfback to summary
public static BoundType valueOf(String name)
valuesback to summary
public static BoundType[] values()