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
conditions, flatMap, get, isEqualTo, isIn, isIn, isNotEqualTo, isNotNull, isNull, map, map, matches, notIn, notIn, otherwise, otherwise, otherwise, otherwiseThrow, otherwiseThrow, otherwiseThrow, otherwiseThrowLast, satisfies, satisfies, then, violates
-
-
-
-
Method Detail
-
me
public static <K,V,T extends Map<K,V>> MapVerifier<K,V,T> me(io.vavr.Lazy<? extends T> value)
-
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)
-
-