| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
abstract T |
get() |
T |
getOrElse(T defaultValue) |
int |
hashCode() |
boolean |
isDefined() |
boolean |
isEmpty() |
static <T> Option<T> |
option(T value) |
protected T data
public Option(T value)
public boolean isDefined()
public boolean isEmpty()
public abstract T get() throws IllegalStateException
IllegalStateExceptionpublic static <T> Option<T> option(T value)
Copyright © 2016. All rights reserved.