Package com.codesseur.validation
Class Conditions<V>
- java.lang.Object
-
- com.codesseur.validation.Conditions<V>
-
- All Implemented Interfaces:
com.codesseur.iterate.container.CollectionContainer<Condition<V>,List<Condition<V>>>,com.codesseur.iterate.container.Container<Condition<V>,List<Condition<V>>>,com.codesseur.iterate.container.Sequence<Condition<V>>,com.codesseur.iterate.Streamed<Condition<V>>,com.codesseur.MicroType<List<Condition<V>>>,AutoCloseable,Iterable<Condition<V>>,BaseStream<Condition<V>,Stream<Condition<V>>>,Stream<Condition<V>>
@Immutable public abstract class Conditions<V> extends Object implements com.codesseur.iterate.container.Sequence<Condition<V>>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface java.util.stream.Stream
Stream.Builder<T extends Object>
-
-
Constructor Summary
Constructors Constructor Description Conditions()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <W> Conditions<W>asPrevious(Function<? super V,? extends W> mapper)io.vavr.control.Either<Failures,V>current()static <V> Conditions<V>empty(io.vavr.control.Either<Failures,V> previous)Conditions<V>otherwiseThrow(Function<? super Failures,? extends RuntimeException> otherwise)static <V> Conditions<V>success(V previous)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.codesseur.iterate.container.CollectionContainer
applyIfNotEmpty, contains, containsBy, count, isEmpty, isNotEmpty, notContains, notContainsBy, size, stream
-
Methods inherited from interface com.codesseur.MicroType
accept, apply, hasValue, matches, toOptional, toStream, value, with
-
Methods inherited from interface com.codesseur.iterate.container.Sequence
get, toOptional, trim, trimLeft, trimRight
-
Methods inherited from interface com.codesseur.iterate.Streamed
addAt, allMatch, anyMatch, append, append, append, close, collect, collect, collect, contains, distinct, distinctBy, distinctBy, filter, find, findAny, findClosest, findClosest, findFirst, findLeftClosest, findRightClosest, flatMap, flatMapIterable, flatMapSticky, flatMapToDouble, flatMapToInt, flatMapToLong, foldLeft, foldLeft, foldLeft, foldRight, foldRight, foldRight, forEach, forEachOrdered, groupBy, groupBy, head, headAndTail, ifNotEmpty, innerZip, isParallel, iterator, join, last, lead, leadAndLast, leftOuterZip, limit, map, map, map, mapFirst, mapFirstOtherwise, mapLast, mapLastOtherwise, mapPartial, mapSticky, mapToDouble, mapToInt, mapToLong, mapTry, mapTryOtherwise, max, min, noneMatch, onClose, outerZip, parallel, peek, peekIf, prepend, prepend, prepend, project, reduce, reduce, reduce, remove, remove, remove, removeAt, removeBy, removeIf, replaceIf, replaceIf, replaceIfOr, replaceIfOrAppend, rightOuterZip, safeCast, safeCast, sequential, skip, sorted, sorted, spliterator, tail, take, toArray, toArray, toBag, toBag, toDictionary, toDictionary, toList, toListThen, toMap, toMap, toOptionals, toSequence, toSequence, toSet, toSetThen, unordered, zip, zipWithIndex
-
-
-
-
Method Detail
-
success
public static <V> Conditions<V> success(V previous)
-
empty
public static <V> Conditions<V> empty(io.vavr.control.Either<Failures,V> previous)
-
asPrevious
public <W> Conditions<W> asPrevious(Function<? super V,? extends W> mapper)
-
otherwiseThrow
public Conditions<V> otherwiseThrow(Function<? super Failures,? extends RuntimeException> otherwise)
-
-