private static class MapConstraints.InverseConstraint<K,V> extends java.lang.Object implements MapConstraint<K,V>
| Modifier and Type | Field and Description |
|---|---|
(package private) MapConstraint<? super V,? super K> |
constraint |
| Constructor and Description |
|---|
InverseConstraint(MapConstraint<? super V,? super K> constraint) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkKeyValue(K key,
V value)
Throws a suitable
RuntimeException if the specified key or value is
illegal. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoStringfinal MapConstraint<? super V,? super K> constraint
public InverseConstraint(MapConstraint<? super V,? super K> constraint)
public void checkKeyValue(K key, V value)
MapConstraintRuntimeException if the specified key or value is
illegal. Typically this is either a NullPointerException, an
IllegalArgumentException, or a ClassCastException, though
an application-specific exception class may be used if appropriate.checkKeyValue in interface MapConstraint<K,V>