Package com.codesseur.validation
Class MapVerifier<K,V,T extends Map<K,V>>
- java.lang.Object
-
- com.codesseur.validation.Verifier<T,MapVerifier<K,V,T>>
-
- com.codesseur.validation.MapVerifier<K,V,T>
-
@Immutable public abstract class MapVerifier<K,V,T extends Map<K,V>> extends Verifier<T,MapVerifier<K,V,T>>
-
-
Constructor Summary
Constructors Constructor Description MapVerifier()
-
Method Summary
-
Methods inherited from class com.codesseur.validation.Verifier
as, get, isEqualTo, isIn, isIn, isInstanceOf, isInstanceOf, isNotEqualTo, isNotNull, isNull, map, mapAs, matches, notIn, notIn, otherwise, otherwise, otherwise, otherwiseThrow, otherwiseThrow, otherwiseThrow, otherwiseThrowLast, satisfies, satisfies, then, verify, violates
-
-
-
-
Method Detail
-
hasSize
public MapVerifier<K,V,T> hasSize(int size)
-
isNotEmpty
public MapVerifier<K,V,T> isNotEmpty()
-
isEmpty
public MapVerifier<K,V,T> isEmpty()
-
noneMatch
public MapVerifier<K,V,T> noneMatch(BiPredicate<? super K,? super V> matcher)
-
allMatch
public MapVerifier<K,V,T> allMatch(BiPredicate<? super K,? super V> matcher)
-
anyMatches
public MapVerifier<K,V,T> anyMatches(BiPredicate<? super K,? super V> matcher)
-
containsKey
public MapVerifier<K,V,T> containsKey(K key)
-
notContainsKey
public MapVerifier<K,V,T> notContainsKey(K key)
-
containsAllKeys
@SafeVarargs public final MapVerifier<K,V,T> containsAllKeys(K... keys)
-
containsAnyKeys
@SafeVarargs public final MapVerifier<K,V,T> containsAnyKeys(K... keys)
-
notContainsAnyKeys
@SafeVarargs public final MapVerifier<K,V,T> notContainsAnyKeys(K... keys)
-
-