@Test public void testEmpty() { Assert.assertFalse("An empty Optional should return false to isPresent()", Optional.empty().isPresent()); }
public static <T> Optional<T> empty() { return (Optional<T>) EMPTY; }
Optional implements Serializable { public static <T> Optional<T> empty() { return (Optional<T>) EMPTY; } }
Optional implements Serializable { public static <T> Optional<T> empty() { return (Optional<T>) EMPTY; } private  Optional(final T value); private  Optional(); }
Optional implements Serializable { public static <T> Optional<T> empty() { return (Optional<T>) EMPTY; } private  Optional(final T value); private  Optional(); static Optional<T> of(final T value); static Optional<T> empty(); static Optional<T> ofNullable(final T value); T get(); T orElse(final T other); boolean isPresent(); @Override boolean equals(final Object obj); @Override int hashCode(); @Override String toString(); }
Optional implements Serializable { public static <T> Optional<T> empty() { return (Optional<T>) EMPTY; } private  Optional(final T value); private  Optional(); static Optional<T> of(final T value); static Optional<T> empty(); static Optional<T> ofNullable(final T value); T get(); T orElse(final T other); boolean isPresent(); @Override boolean equals(final Object obj); @Override int hashCode(); @Override String toString();  }