Class AbstractDictionaryChecker<K,V,T extends com.codesseur.iterate.container.Dictionary<K,V>,S extends AbstractDictionaryChecker<K,V,T,S>>
- java.lang.Object
-
- com.codesseur.validation.Checker<S,T>
-
- com.codesseur.validation.collection.AbstractDictionaryChecker<K,V,T,S>
-
- Direct Known Subclasses:
DictionaryChecker,MapChecker
public abstract class AbstractDictionaryChecker<K,V,T extends com.codesseur.iterate.container.Dictionary<K,V>,S extends AbstractDictionaryChecker<K,V,T,S>> extends Checker<S,T>
-
-
Constructor Summary
Constructors Constructor Description AbstractDictionaryChecker(io.vavr.control.Either<Failures,T> value)AbstractDictionaryChecker(io.vavr.control.Either<Failures,T> value, Function<T,io.vavr.control.Either<Failure,T>> lastCheck)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SallKeysMatch(Predicate<? super K> matcher)SallMatch(BiPredicate<? super K,? super V> matcher)SallValuesMatch(Predicate<? super V> matcher)SanyKeyMatches(Predicate<? super K> matcher)SanyMatches(BiPredicate<? super K,? super V> matcher)SanyValueMatches(Predicate<? super V> matcher)ScontainsAllKeys(Iterable<? extends K> keys)ScontainsAllKeys(K... keys)ScontainsAnyKeys(Iterable<? extends K> keys)ScontainsAnyKeys(K... keys)ScontainsKey(K key)ShasSize(int size)SisEmpty()SisNotEmpty()SnoneKeysMatch(Predicate<? super K> matcher)SnoneMatch(BiPredicate<? super K,? super V> matcher)SnoneValuesMatch(Predicate<? super V> matcher)SnotContainsAnyKeys(Iterable<? extends K> keys)SnotContainsAnyKeys(K... keys)SnotContainsKey(K key)-
Methods inherited from class com.codesseur.validation.Checker
destruct, destruct, destruct, destruct, destruct, destruct, destruct, destruct, flatMap, flatMap, get, isEqualTo, isIn, isIn, isInstanceOf, isInstanceOf, isNotEqualTo, isNotNull, isNull, map, notIn, notIn, orElse, orElseFail, orElseFail, orElseFail, orElseGet, orElseGet, orElseThrow, orElseThrow, orElseThrow, orElseThrowLast, satisfies, satisfies, then, violates, with, with, with
-
-
-
-
Method Detail
-
hasSize
public S hasSize(int size)
-
isNotEmpty
public S isNotEmpty()
-
isEmpty
public S isEmpty()
-
noneMatch
public S noneMatch(BiPredicate<? super K,? super V> matcher)
-
allMatch
public S allMatch(BiPredicate<? super K,? super V> matcher)
-
anyMatches
public S anyMatches(BiPredicate<? super K,? super V> matcher)
-
containsAllKeys
@SafeVarargs public final S containsAllKeys(K... keys)
-
containsAnyKeys
@SafeVarargs public final S containsAnyKeys(K... keys)
-
notContainsAnyKeys
@SafeVarargs public final S notContainsAnyKeys(K... keys)
-
-