Package | Description |
---|---|
com.google.common.collect |
This package contains generic collection interfaces and implementations, and
other utilities for working with collections.
|
Modifier and Type | Field and Description |
---|---|
private BoundType |
GeneralRange.lowerBoundType |
private BoundType |
GeneralRange.upperBoundType |
Modifier and Type | Method and Description |
---|---|
(package private) abstract BoundType |
BoundType.flip() |
(package private) static BoundType |
BoundType.forBoolean(boolean inclusive)
Returns the bound type corresponding to a boolean value for inclusivity.
|
(package private) BoundType |
GeneralRange.getLowerBoundType() |
(package private) BoundType |
GeneralRange.getUpperBoundType() |
BoundType |
Range.lowerBoundType()
|
(package private) abstract BoundType |
Cut.typeAsLowerBound() |
(package private) BoundType |
Cut.BelowAll.typeAsLowerBound() |
(package private) BoundType |
Cut.AboveAll.typeAsLowerBound() |
(package private) BoundType |
Cut.BelowValue.typeAsLowerBound() |
(package private) BoundType |
Cut.AboveValue.typeAsLowerBound() |
(package private) abstract BoundType |
Cut.typeAsUpperBound() |
(package private) BoundType |
Cut.BelowAll.typeAsUpperBound() |
(package private) BoundType |
Cut.AboveAll.typeAsUpperBound() |
(package private) BoundType |
Cut.BelowValue.typeAsUpperBound() |
(package private) BoundType |
Cut.AboveValue.typeAsUpperBound() |
BoundType |
Range.upperBoundType()
|
static BoundType |
BoundType.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BoundType[] |
BoundType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static <C extends java.lang.Comparable<?>> |
Range.downTo(C endpoint,
BoundType boundType)
Returns a range from the given endpoint, which may be either inclusive
(closed) or exclusive (open), with no upper bound.
|
(package private) static <T> GeneralRange<T> |
GeneralRange.downTo(java.util.Comparator<? super T> comparator,
T endpoint,
BoundType boundType)
Returns everything above the endpoint relative to the specified comparator, with the specified
endpoint behavior.
|
SortedMultiset<E> |
UnmodifiableSortedMultiset.headMultiset(E upperBound,
BoundType boundType) |
SortedMultiset<E> |
TreeMultiset.headMultiset(E upperBound,
BoundType boundType) |
SortedMultiset<E> |
DescendingMultiset.headMultiset(E toElement,
BoundType boundType) |
SortedMultiset<E> |
ForwardingSortedMultiset.headMultiset(E upperBound,
BoundType boundType) |
ImmutableSortedMultiset<E> |
RegularImmutableSortedMultiset.headMultiset(E upperBound,
BoundType boundType) |
SortedMultiset<E> |
SortedMultiset.headMultiset(E upperBound,
BoundType boundType)
Returns a view of this multiset restricted to the elements less than
upperBound , optionally including upperBound itself. |
abstract ImmutableSortedMultiset<E> |
ImmutableSortedMultiset.headMultiset(E upperBound,
BoundType boundType) |
ImmutableSortedMultiset<E> |
DescendingImmutableSortedMultiset.headMultiset(E upperBound,
BoundType boundType) |
Range<C> |
RegularContiguousSet.range(BoundType lowerBoundType,
BoundType upperBoundType) |
Range<C> |
EmptyContiguousSet.range(BoundType lowerBoundType,
BoundType upperBoundType) |
abstract Range<C> |
ContiguousSet.range(BoundType lowerBoundType,
BoundType upperBoundType)
Returns the minimal range with the given boundary types for which all values in this set are
contained within the range.
|
static <C extends java.lang.Comparable<?>> |
Range.range(C lower,
BoundType lowerType,
C upper,
BoundType upperType)
Returns a range that contains any value from
lower to upper , where each endpoint may be either inclusive (closed) or exclusive
(open). |
(package private) static <T> GeneralRange<T> |
GeneralRange.range(java.util.Comparator<? super T> comparator,
T lower,
BoundType lowerType,
T upper,
BoundType upperType)
Returns everything between the endpoints relative to the specified comparator, with the
specified endpoint behavior.
|
protected SortedMultiset<E> |
ForwardingSortedMultiset.standardSubMultiset(E lowerBound,
BoundType lowerBoundType,
E upperBound,
BoundType upperBoundType)
A sensible definition of
ForwardingSortedMultiset.subMultiset(Object, BoundType, Object, BoundType) in terms
of headMultiset and
tailMultiset . |
SortedMultiset<E> |
UnmodifiableSortedMultiset.subMultiset(E lowerBound,
BoundType lowerBoundType,
E upperBound,
BoundType upperBoundType) |
SortedMultiset<E> |
DescendingMultiset.subMultiset(E fromElement,
BoundType fromBoundType,
E toElement,
BoundType toBoundType) |
SortedMultiset<E> |
ForwardingSortedMultiset.subMultiset(E lowerBound,
BoundType lowerBoundType,
E upperBound,
BoundType upperBoundType) |
SortedMultiset<E> |
AbstractSortedMultiset.subMultiset(E fromElement,
BoundType fromBoundType,
E toElement,
BoundType toBoundType) |
SortedMultiset<E> |
SortedMultiset.subMultiset(E lowerBound,
BoundType lowerBoundType,
E upperBound,
BoundType upperBoundType)
Returns a view of this multiset restricted to the range between
lowerBound and upperBound . |
ImmutableSortedMultiset<E> |
ImmutableSortedMultiset.subMultiset(E lowerBound,
BoundType lowerBoundType,
E upperBound,
BoundType upperBoundType) |
SortedMultiset<E> |
UnmodifiableSortedMultiset.tailMultiset(E lowerBound,
BoundType boundType) |
SortedMultiset<E> |
TreeMultiset.tailMultiset(E lowerBound,
BoundType boundType) |
SortedMultiset<E> |
DescendingMultiset.tailMultiset(E fromElement,
BoundType boundType) |
SortedMultiset<E> |
ForwardingSortedMultiset.tailMultiset(E lowerBound,
BoundType boundType) |
ImmutableSortedMultiset<E> |
RegularImmutableSortedMultiset.tailMultiset(E lowerBound,
BoundType boundType) |
SortedMultiset<E> |
SortedMultiset.tailMultiset(E lowerBound,
BoundType boundType)
Returns a view of this multiset restricted to the elements greater than
lowerBound , optionally including lowerBound itself. |
abstract ImmutableSortedMultiset<E> |
ImmutableSortedMultiset.tailMultiset(E lowerBound,
BoundType boundType) |
ImmutableSortedMultiset<E> |
DescendingImmutableSortedMultiset.tailMultiset(E lowerBound,
BoundType boundType) |
static <C extends java.lang.Comparable<?>> |
Range.upTo(C endpoint,
BoundType boundType)
Returns a range with no lower bound up to the given endpoint, which may be
either inclusive (closed) or exclusive (open).
|
(package private) static <T> GeneralRange<T> |
GeneralRange.upTo(java.util.Comparator<? super T> comparator,
T endpoint,
BoundType boundType)
Returns everything below the endpoint relative to the specified comparator, with the specified
endpoint behavior.
|
(package private) abstract Cut<C> |
Cut.withLowerBoundType(BoundType boundType,
DiscreteDomain<C> domain) |
(package private) Cut<C> |
Cut.BelowValue.withLowerBoundType(BoundType boundType,
DiscreteDomain<C> domain) |
(package private) Cut<C> |
Cut.AboveValue.withLowerBoundType(BoundType boundType,
DiscreteDomain<C> domain) |
(package private) Cut<java.lang.Comparable<?>> |
Cut.BelowAll.withLowerBoundType(BoundType boundType,
DiscreteDomain<java.lang.Comparable<?>> domain) |
(package private) Cut<java.lang.Comparable<?>> |
Cut.AboveAll.withLowerBoundType(BoundType boundType,
DiscreteDomain<java.lang.Comparable<?>> domain) |
(package private) abstract Cut<C> |
Cut.withUpperBoundType(BoundType boundType,
DiscreteDomain<C> domain) |
(package private) Cut<C> |
Cut.BelowValue.withUpperBoundType(BoundType boundType,
DiscreteDomain<C> domain) |
(package private) Cut<C> |
Cut.AboveValue.withUpperBoundType(BoundType boundType,
DiscreteDomain<C> domain) |
(package private) Cut<java.lang.Comparable<?>> |
Cut.BelowAll.withUpperBoundType(BoundType boundType,
DiscreteDomain<java.lang.Comparable<?>> domain) |
(package private) Cut<java.lang.Comparable<?>> |
Cut.AboveAll.withUpperBoundType(BoundType boundType,
DiscreteDomain<java.lang.Comparable<?>> domain) |
Constructor and Description |
---|
GeneralRange(java.util.Comparator<? super T> comparator,
boolean hasLowerBound,
T lowerEndpoint,
BoundType lowerBoundType,
boolean hasUpperBound,
T upperEndpoint,
BoundType upperBoundType) |