java.util
Class Optional<T>

java.lang.Object
  extended by java.util.Optional<T>

public final class Optional<T>
extends Object

Stub implementation of JDK 8's Optional.

Author:
Oliver Gierke

Method Summary
static
<T> Optional<T>
empty()
           
static
<T> Optional<T>
of(T value)
           
static
<T> Optional<T>
ofNullable(T value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.