Package | Description |
---|---|
com.google.common.collect |
This package contains generic collection interfaces and implementations, and
other utilities for working with collections.
|
Modifier and Type | Method and Description |
---|---|
static MapConstraint<Object,Object> |
MapConstraints.notNull()
Returns a constraint that verifies that neither the key nor the value is
null.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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> Map<K,V> |
MapConstraints.constrainedMap(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.
|
Copyright © 2010-2014. All Rights Reserved.