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 Constraint<? super E> |
Constraints.ConstrainedCollection.constraint |
private Constraint<? super E> |
Constraints.ConstrainedSet.constraint |
(package private) Constraint<? super E> |
Constraints.ConstrainedSortedSet.constraint |
(package private) Constraint<? super E> |
Constraints.ConstrainedList.constraint |
private Constraint<? super E> |
Constraints.ConstrainedListIterator.constraint |
Modifier and Type | Method and Description |
---|---|
private static <E> java.util.Collection<E> |
Constraints.checkElements(java.util.Collection<E> elements,
Constraint<? super E> constraint) |
static <E> java.util.Collection<E> |
Constraints.constrainedCollection(java.util.Collection<E> collection,
Constraint<? super E> constraint)
Returns a constrained view of the specified collection, using the specified
constraint.
|
static <E> java.util.List<E> |
Constraints.constrainedList(java.util.List<E> list,
Constraint<? super E> constraint)
Returns a constrained view of the specified list, using the specified
constraint.
|
private static <E> java.util.ListIterator<E> |
Constraints.constrainedListIterator(java.util.ListIterator<E> listIterator,
Constraint<? super E> constraint)
Returns a constrained view of the specified list iterator, using the
specified constraint.
|
static <E> java.util.Set<E> |
Constraints.constrainedSet(java.util.Set<E> set,
Constraint<? super E> constraint)
Returns a constrained view of the specified set, using the specified
constraint.
|
static <E> java.util.SortedSet<E> |
Constraints.constrainedSortedSet(java.util.SortedSet<E> sortedSet,
Constraint<? super E> constraint)
Returns a constrained view of the specified sorted set, using the specified
constraint.
|
(package private) static <E> java.util.Collection<E> |
Constraints.constrainedTypePreservingCollection(java.util.Collection<E> collection,
Constraint<E> constraint) |
Constructor and Description |
---|
ConstrainedCollection(java.util.Collection<E> delegate,
Constraint<? super E> constraint) |
ConstrainedList(java.util.List<E> delegate,
Constraint<? super E> constraint) |
ConstrainedListIterator(java.util.ListIterator<E> delegate,
Constraint<? super E> constraint) |
ConstrainedRandomAccessList(java.util.List<E> delegate,
Constraint<? super E> constraint) |
ConstrainedSet(java.util.Set<E> delegate,
Constraint<? super E> constraint) |
ConstrainedSortedSet(java.util.SortedSet<E> delegate,
Constraint<? super E> constraint) |