Package io.vavr.control
Class Validation.Valid<E,T>
- java.lang.Object
-
- io.vavr.control.Validation<E,T>
-
- io.vavr.control.Validation.Valid<E,T>
-
- Type Parameters:
E
- type of the error of this ValidationT
- type of the value of this Validation
- Enclosing class:
- Validation<E,T>
@Deprecated public static final class Validation.Valid<E,T> extends Validation<E,T> implements java.io.Serializable
Deprecated.will be removed from the public APIA valid Validation- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.vavr.control.Validation
Validation.Builder<E,T1,T2>, Validation.Builder3<E,T1,T2,T3>, Validation.Builder4<E,T1,T2,T3,T4>, Validation.Builder5<E,T1,T2,T3,T4,T5>, Validation.Builder6<E,T1,T2,T3,T4,T5,T6>, Validation.Builder7<E,T1,T2,T3,T4,T5,T6,T7>, Validation.Builder8<E,T1,T2,T3,T4,T5,T6,T7,T8>, Validation.Invalid<E,T>, Validation.Valid<E,T>
-
-
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object obj)
Deprecated.Clarifies that values have a proper equals() method implemented.T
get()
Deprecated.Gets the value of thisValidation
if is aValid
or throws if this is anInvalid
.E
getError()
Deprecated.Gets the error of this Validation if it is anInvalid
or throws if this is aValid
.int
hashCode()
Deprecated.Clarifies that values have a proper hashCode() method implemented.boolean
isInvalid()
Deprecated.Check whether this is of typeInvalid
boolean
isValid()
Deprecated.Check whether this is of typeValid
java.lang.String
stringPrefix()
Deprecated.Returns the name of this Value type, which is used by toString().java.lang.String
toString()
Deprecated.Clarifies that values have a proper toString() method implemented.-
Methods inherited from class io.vavr.control.Validation
ap, bimap, combine, combine, combine, combine, combine, combine, combine, combine, filter, flatMap, fold, forEach, fromEither, fromTry, getOrElseGet, invalid, isAsync, isEmpty, isLazy, isSingleValued, iterator, map, mapError, narrow, orElse, orElse, peek, sequence, swap, toEither, traverse, valid
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.vavr.Value
collect, collect, contains, corresponds, eq, exists, forAll, getOrElse, getOrElse, getOrElseThrow, getOrElseTry, getOrNull, out, out, spliterator, stderr, stdout, toArray, toCharSeq, toCompletableFuture, toEither, toEither, toInvalid, toInvalid, toJavaArray, toJavaArray, toJavaArray, toJavaCollection, toJavaList, toJavaList, toJavaMap, toJavaMap, toJavaMap, toJavaOptional, toJavaParallelStream, toJavaSet, toJavaSet, toJavaStream, toLeft, toLeft, toLinkedMap, toLinkedMap, toLinkedSet, toList, toMap, toMap, toOption, toPriorityQueue, toPriorityQueue, toQueue, toRight, toRight, toSet, toSortedMap, toSortedMap, toSortedMap, toSortedMap, toSortedSet, toSortedSet, toStream, toTree, toTree, toTry, toTry, toValid, toValid, toValidation, toValidation, toVector
-
-
-
-
Method Detail
-
isValid
public boolean isValid()
Deprecated.Description copied from class:Validation
Check whether this is of typeValid
- Specified by:
isValid
in classValidation<E,T>
- Returns:
- true if is a Valid, false if is an Invalid
-
isInvalid
public boolean isInvalid()
Deprecated.Description copied from class:Validation
Check whether this is of typeInvalid
- Specified by:
isInvalid
in classValidation<E,T>
- Returns:
- true if is an Invalid, false if is a Valid
-
get
public T get()
Deprecated.Description copied from class:Validation
Gets the value of thisValidation
if is aValid
or throws if this is anInvalid
.
-
getError
public E getError() throws java.lang.RuntimeException
Deprecated.Description copied from class:Validation
Gets the error of this Validation if it is anInvalid
or throws if this is aValid
.- Specified by:
getError
in classValidation<E,T>
- Returns:
- The error, if present
- Throws:
java.lang.RuntimeException
- if this is aValid
-
equals
public boolean equals(java.lang.Object obj)
Deprecated.Description copied from interface:Value
Clarifies that values have a proper equals() method implemented.
-
hashCode
public int hashCode()
Deprecated.Description copied from interface:Value
Clarifies that values have a proper hashCode() method implemented.See Object.hashCode().
-
stringPrefix
public java.lang.String stringPrefix()
Deprecated.Description copied from interface:Value
Returns the name of this Value type, which is used by toString().- Specified by:
stringPrefix
in interfaceValue<E>
- Returns:
- This type name.
-
toString
public java.lang.String toString()
Deprecated.Description copied from interface:Value
Clarifies that values have a proper toString() method implemented.See Object.toString().
-
-