java.util
Class Optional<T>
java.lang.Object
java.util.Optional<T>
public final class Optional<T>
- extends Object
Stub implementation of JDK 8's Optional.
- Author:
- Oliver Gierke
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
of
public static <T> Optional<T> of(T value)
ofNullable
public static <T> Optional<T> ofNullable(T value)
empty
public static <T> Optional<T> empty()
Copyright © 2014 Pivotal Software, Inc.. All rights reserved.