T - The type of the optional value.public static final class Option.None<T> extends Object implements Option<T>, Serializable
Option.Option.None<T>, Option.Some<T>| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o)
Clarifies that values have a proper equals() method implemented.
|
T |
get()
Gets the value if this is a
Some or throws if this is a None. |
int |
hashCode()
Clarifies that values have a proper hashCode() method implemented.
|
boolean |
isEmpty()
Returns true, if this is
None, otherwise false, if this is Some. |
String |
stringPrefix()
Returns the name of this Value type, which is used by toString().
|
String |
toString()
Clarifies that values have a proper toString() method implemented.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcollect, filter, flatMap, fold, getOrElse, getOrElse, getOrElseThrow, isAsync, isDefined, isLazy, isSingleValued, iterator, map, narrow, none, of, ofOptional, onEmpty, orElse, orElse, peek, sequence, some, transform, traverse, when, whencollect, collect, contains, corresponds, eq, exists, forAll, forEach, getOrElseTry, getOrNull, narrow, 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, toVectorpublic T get()
OptionSome or throws if this is a None.public boolean isEmpty()
OptionNone, otherwise false, if this is Some.public boolean equals(Object o)
Valuepublic int hashCode()
ValueSee Object.hashCode().
public String stringPrefix()
ValuestringPrefix in interface Value<T>public String toString()
ValueSee Object.toString().
Copyright © 2019. All Rights Reserved.