A validator that operates on objects that can be empty, and succeeds only if the provided instance is empty.
A validator that operates on objects that can be empty, and succeeds only if the provided instance is empty.
A type that implements isEmpty: Boolean
(see com.wix.accord.combinators.HasEmpty).
A structural type representing any object that can be empty.
A validator that succeeds only if the object exists in the target collection.
A validator that operates on objects that can be empty, and succeeds only if the provided instance is not empty.
A validator that operates on objects that can be empty, and succeeds only if the provided instance is not empty.
A type that implements isEmpty: Boolean
(see com.wix.accord.combinators.HasEmpty).
A validator that succeeds only if the provided collection has no duplicate elements.
An implicit conversion to enable any collection-like object (e.
An implicit conversion to enable any collection-like object (e.g. strings, options) to be handled by the com.wix.accord.combinators.CollectionCombinators.Empty and com.wix.accord.combinators.CollectionCombinators.NotEmpty combinators.
java.lang.String does not directly implement isEmpty
(in practice it is implemented in
scala.collection.IndexedSeqOptimized, via an implicit conversion and an inheritance stack), and this is
a case where the Scala compiler does not always infer structural types correctly. By requiring
a view bound from T
to scala.collection.GenTraversableOnce we can force any collection-like structure
to conform to the structural type com.wix.accord.combinators.HasEmpty, and by requiring
a view bound from T
to com.wix.accord.combinators.HasEmpty at the call site (e.g.
com.wix.accord.dsl.empty) we additionally support any class that directly conforms to the
structural type as well.
The type that conforms, directly or implicitly, to com.wix.accord.combinators.HasEmpty.
An object that is, or is implicitly convertible to, scala.collection.GenTraversableOnce.
The specified object, strictly-typed as com.wix.accord.combinators.HasEmpty.
Combinators that operate on collections and collection-like structures.