Package | Description |
---|---|
com.google.common.collect |
This package contains generic collection interfaces and implementations, and
other utilities for working with collections.
|
Modifier and Type | Class and Description |
---|---|
private static class |
MapConstraints.InverseConstraint<K,V> |
private static class |
MapConstraints.NotNullMapConstraint |
Modifier and Type | Field and Description |
---|---|
(package private) MapConstraint<? super K,? super V> |
MapConstraints.ConstrainedMap.constraint |
(package private) MapConstraint<? super V,? super K> |
MapConstraints.InverseConstraint.constraint |
(package private) MapConstraint<? super K,? super V> |
MapConstraints.ConstrainedMultimap.constraint |
(package private) MapConstraint<? super K,? super V> |
MapConstraints.ConstrainedEntries.constraint |
private MapConstraint<? super K,? super V> |
MapConstraints.ConstrainedAsMapEntries.constraint |
private static MapConstraint<java.lang.Class<?>,java.lang.Object> |
MutableClassToInstanceMap.VALUE_CAN_BE_CAST_TO_KEY |
Modifier and Type | Method and Description |
---|---|
static MapConstraint<java.lang.Object,java.lang.Object> |
MapConstraints.notNull()
Returns a constraint that verifies that neither the key nor the value is
null.
|
Modifier and Type | Method and Description |
---|---|
private static <K,V> java.util.Map<K,V> |
MapConstraints.checkMap(java.util.Map<? extends K,? extends V> map,
MapConstraint<? super K,? super V> constraint) |
private static <K,V> java.util.Collection<V> |
MapConstraints.checkValues(K key,
java.lang.Iterable<? extends V> values,
MapConstraint<? super K,? super V> constraint) |
private static <K,V> java.util.Set<java.util.Map.Entry<K,java.util.Collection<V>>> |
MapConstraints.constrainedAsMapEntries(java.util.Set<java.util.Map.Entry<K,java.util.Collection<V>>> entries,
MapConstraint<? super K,? super V> constraint)
Returns a constrained view of the specified set of
asMap entries,
using the specified constraint. |
private static <K,V> java.util.Map.Entry<K,java.util.Collection<V>> |
MapConstraints.constrainedAsMapEntry(java.util.Map.Entry<K,java.util.Collection<V>> entry,
MapConstraint<? super K,? super V> constraint)
Returns a constrained view of the specified
asMap entry, using the
specified constraint. |
static <K,V> BiMap<K,V> |
MapConstraints.constrainedBiMap(BiMap<K,V> map,
MapConstraint<? super K,? super V> constraint)
Returns a constrained view of the specified bimap, using the specified
constraint.
|
private static <K,V> java.util.Collection<java.util.Map.Entry<K,V>> |
MapConstraints.constrainedEntries(java.util.Collection<java.util.Map.Entry<K,V>> entries,
MapConstraint<? super K,? super V> constraint)
Returns a constrained view of the specified collection (or set) of entries,
using the specified constraint.
|
private static <K,V> java.util.Map.Entry<K,V> |
MapConstraints.constrainedEntry(java.util.Map.Entry<K,V> entry,
MapConstraint<? super K,? super V> constraint)
Returns a constrained view of the specified entry, using the specified
constraint.
|
private static <K,V> java.util.Set<java.util.Map.Entry<K,V>> |
MapConstraints.constrainedEntrySet(java.util.Set<java.util.Map.Entry<K,V>> entries,
MapConstraint<? super K,? super V> constraint)
Returns a constrained view of the specified set of entries, using the
specified constraint.
|
static <K,V> ListMultimap<K,V> |
MapConstraints.constrainedListMultimap(ListMultimap<K,V> multimap,
MapConstraint<? super K,? super V> constraint)
Returns a constrained view of the specified list multimap, using the
specified constraint.
|
static <K,V> java.util.Map<K,V> |
MapConstraints.constrainedMap(java.util.Map<K,V> map,
MapConstraint<? super K,? super V> constraint)
Returns a constrained view of the specified map, using the specified
constraint.
|
static <K,V> Multimap<K,V> |
MapConstraints.constrainedMultimap(Multimap<K,V> multimap,
MapConstraint<? super K,? super V> constraint)
Returns a constrained view of the specified multimap, using the specified
constraint.
|
static <K,V> SetMultimap<K,V> |
MapConstraints.constrainedSetMultimap(SetMultimap<K,V> multimap,
MapConstraint<? super K,? super V> constraint)
Returns a constrained view of the specified set multimap, using the
specified constraint.
|
static <K,V> SortedSetMultimap<K,V> |
MapConstraints.constrainedSortedSetMultimap(SortedSetMultimap<K,V> multimap,
MapConstraint<? super K,? super V> constraint)
Returns a constrained view of the specified sorted-set multimap, using the
specified constraint.
|
Constructor and Description |
---|
ConstrainedAsMapEntries(java.util.Set<java.util.Map.Entry<K,java.util.Collection<V>>> entries,
MapConstraint<? super K,? super V> constraint) |
ConstrainedBiMap(BiMap<K,V> delegate,
BiMap<V,K> inverse,
MapConstraint<? super K,? super V> constraint) |
ConstrainedEntries(java.util.Collection<java.util.Map.Entry<K,V>> entries,
MapConstraint<? super K,? super V> constraint) |
ConstrainedEntrySet(java.util.Set<java.util.Map.Entry<K,V>> entries,
MapConstraint<? super K,? super V> constraint) |
ConstrainedListMultimap(ListMultimap<K,V> delegate,
MapConstraint<? super K,? super V> constraint) |
ConstrainedMap(java.util.Map<K,V> delegate,
MapConstraint<? super K,? super V> constraint) |
ConstrainedMultimap(Multimap<K,V> delegate,
MapConstraint<? super K,? super V> constraint) |
ConstrainedSetMultimap(SetMultimap<K,V> delegate,
MapConstraint<? super K,? super V> constraint) |
ConstrainedSortedSetMultimap(SortedSetMultimap<K,V> delegate,
MapConstraint<? super K,? super V> constraint) |
InverseConstraint(MapConstraint<? super V,? super K> constraint) |