Uses of Enum
com.google.common.collect.BoundType
Packages that use BoundType
Package
Description
Collection interfaces and implementations, and other utilities for collections.
-
Uses of BoundType in com.google.common.collect
Subclasses with type arguments of type BoundType in com.google.common.collectModifier and TypeClassDescriptionenumIndicates whether an endpoint of some range is contained in the range itself ("closed") or not ("open").Methods in com.google.common.collect that return BoundTypeModifier and TypeMethodDescriptionRange.lowerBoundType()Returns the type of this range's lower bound:BoundType.CLOSEDif the range includes its lower endpoint,BoundType.OPENif it does not.Range.upperBoundType()Returns the type of this range's upper bound:BoundType.CLOSEDif the range includes its upper endpoint,BoundType.OPENif it does not.static BoundTypeReturns 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.Methods in com.google.common.collect with parameters of type BoundTypeModifier and TypeMethodDescriptionstatic <C extends Comparable<?>>
Range<C> Returns a range from the given endpoint, which may be either inclusive (closed) or exclusive (open), with no upper bound.ForwardingSortedMultiset.headMultiset(E upperBound, BoundType boundType) abstract ImmutableSortedMultiset<E> ImmutableSortedMultiset.headMultiset(E upperBound, BoundType boundType) SortedMultiset.headMultiset(E upperBound, BoundType boundType) Returns a view of this multiset restricted to the elements less thanupperBound, optionally includingupperBounditself.TreeMultiset.headMultiset(E upperBound, BoundType boundType) Returns the minimal range with the given boundary types for which all values in this set are contained within the range.static <C extends Comparable<?>>
Range<C> Returns a range that contains any value fromlowertoupper, where each endpoint may be either inclusive (closed) or exclusive (open).protected SortedMultiset<E> ForwardingSortedMultiset.standardSubMultiset(E lowerBound, BoundType lowerBoundType, E upperBound, BoundType upperBoundType) A sensible definition ofForwardingSortedMultiset.subMultiset(Object, BoundType, Object, BoundType)in terms ofheadMultisetandtailMultiset.ForwardingSortedMultiset.subMultiset(E lowerBound, BoundType lowerBoundType, E upperBound, BoundType upperBoundType) ImmutableSortedMultiset.subMultiset(E lowerBound, BoundType lowerBoundType, E upperBound, BoundType upperBoundType) SortedMultiset.subMultiset(E lowerBound, BoundType lowerBoundType, E upperBound, BoundType upperBoundType) Returns a view of this multiset restricted to the range betweenlowerBoundandupperBound.ForwardingSortedMultiset.tailMultiset(E lowerBound, BoundType boundType) abstract ImmutableSortedMultiset<E> ImmutableSortedMultiset.tailMultiset(E lowerBound, BoundType boundType) SortedMultiset.tailMultiset(E lowerBound, BoundType boundType) Returns a view of this multiset restricted to the elements greater thanlowerBound, optionally includinglowerBounditself.TreeMultiset.tailMultiset(E lowerBound, BoundType boundType) static <C extends Comparable<?>>
Range<C> Returns a range with no lower bound up to the given endpoint, which may be either inclusive (closed) or exclusive (open).