public static class Lang.Some<T> extends Lang.Option<T>
Lang.Option.f
f
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, some
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public Some(T value)
public T get()
Lang.Option
If a value is present in this Option
, returns the value, otherwise throws NoSuchElementException.
get
in class Lang.Option<T>
Option
public String toString()
toString
in class Lang.Option<T>
Copyright © 2014–2019 OSGL (Open Source General Library). All rights reserved.