public static class Lang.None<T> extends Lang.Option<T>
Lang.Option.f| Modifier and Type | Field and Description |
|---|---|
static Lang.None |
INSTANCE |
f| Modifier and Type | Method and Description |
|---|---|
protected Object |
clone() |
T |
get()
If a value is present in this
Option, returns the value, otherwise throws NoSuchElementException. |
Iterator<T> |
iterator() |
String |
toString() |
equals, filter, flatMap, hashCode, isDefined, map, none, notDefined, of, orElse, orElse, runWith, somefinalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic static final Lang.None INSTANCE
protected Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic T get()
Lang.OptionIf a value is present in this Option, returns the value, otherwise throws NoSuchElementException.
get in class Lang.Option<T>Optionpublic String toString()
toString in class Lang.Option<T>Copyright © 2014–2021 OSGL (Open Source General Library). All rights reserved.