public static class Lang.Some<T> extends Lang.Option<T>
Lang.Option.ff| Modifier and Type | Method and Description |
|---|---|
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, someclone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic Some(T value)
public 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–2019 OSGL (Open Source General Library). All rights reserved.