Interface MapValidator<T extends Map<K,V>,K,V>   
- Type Parameters:
- T- the type of the map
- K- the type of keys in the map
- V- the type of values in the map
- All Superinterfaces:
- ObjectComponent<MapValidator<T,,- K, - V>, - T> - ValidatorComponent<MapValidator<T,- K, - V>, - T> 
public interface MapValidator<T extends Map<K,V>,K,V>   
extends ValidatorComponent<MapValidator<T,K,V>,T>, ObjectComponent<MapValidator<T,K,V>,T>      
Validates the state of a 
Map.- 
Method SummaryModifier and TypeMethodDescriptionentrySet()Returns a validator for the value'sentries.MapValidator<T, K, V> isEmpty()Ensures that the value is empty.MapValidator<T, K, V> Ensures that the value is not empty.keySet()Returns a validator for the value'skeys.size()Returns a validator for the map'ssize.values()Returns a validator for the value'svalues.Methods declared in interface com.github.cowwoc.requirements10.java.validator.component.ObjectComponentgetValue, isEqualTo, isEqualTo, isInstanceOf, isInstanceOf, isNotEqualTo, isNotEqualTo, isNotInstanceOf, isNotInstanceOf, isNotNull, isNull, isReferenceEqualTo, isReferenceNotEqualToMethods declared in interface com.github.cowwoc.requirements10.java.validator.component.ValidatorComponentand, elseGetFailures, elseThrow, getContext, getContextAsString, getName, getValueOrDefault, validationFailed, withContext
- 
Method Details- 
keySetCollectionValidator<Set<K>,K> keySet()Returns a validator for the value'skeys.- Returns:
- a validator for the value's keys
- Throws:
- NullPointerException- if the value is null
 
- 
valuesCollectionValidator<Collection<V>,V> values()Returns a validator for the value'svalues.- Returns:
- a validator for the value's values
- Throws:
- NullPointerException- if the value is null
 
- 
entrySetReturns a validator for the value'sentries.- Returns:
- a validator for the value's entries
- Throws:
- NullPointerException- if the value is null
 
- 
isEmptyMapValidator<T,K, isEmpty()V> Ensures that the value is empty.- Returns:
- this
- Throws:
- NullPointerException- if the value is null
- IllegalArgumentException- if value is not empty
 
- 
isNotEmptyMapValidator<T,K, isNotEmpty()V> Ensures that the value is not empty.- Returns:
- this
- Throws:
- NullPointerException- if the value is null
- IllegalArgumentException- if value is empty
 
- 
sizeReturns a validator for the map'ssize.- Returns:
- a validator for the map's size
- Throws:
- NullPointerException- if the value is null
 
 
-