@Test public void testGet() { final Option<String> stringOption = Option.of("Option"); }
public A get() { if (empty) { throw new NoSuchElementException("Option is empty!"); } else { return value; } }
Option implements TraversableOnce<A>, Serializable, Equals, Function0<A>, Monad<A> { public A get() { if (empty) { throw new NoSuchElementException("Option is empty!"); } else { return value; } } }
Option implements TraversableOnce<A>, Serializable, Equals, Function0<A>, Monad<A> { public A get() { if (empty) { throw new NoSuchElementException("Option is empty!"); } else { return value; } } private  Option(); private  Option(A value); }
Option implements TraversableOnce<A>, Serializable, Equals, Function0<A>, Monad<A> { public A get() { if (empty) { throw new NoSuchElementException("Option is empty!"); } else { return value; } } private  Option(); private  Option(A value); @SuppressWarnings("unchecked") static Option<A> narrow(Option<? extends A> option); @SuppressWarnings("unchecked") static Option<A> none(); @SuppressWarnings("unchecked") static Option<A> some(A value); static Option<A> of(A value); Iterator<A> iterator(); boolean isEmpty(); boolean nonEmpty(); A get(); A getValue(); A invoke(); @SuppressWarnings("unchecked") A orElse(Function0<? extends A> f); A orDefault(A a); A orNull(); A orThrow(Function0<? extends T> exceptionSupplier); @Override void foreach(ToVoidFunction1<? super A> f); @Override Functor<B> map(Function1<? super A, ? extends B> mapper); @Override Monad<B> flatMap(Function1<? super A, ? extends Monad<B>> mapper); Option<A> filter(ToBoolFunction1<A> p); Option<A> filterNot(ToBoolFunction1<A> p); Optional<A> asJava(); @Override String toString(); @Override boolean canEqual(Object that); @Override boolean equals(Object obj); }
Option implements TraversableOnce<A>, Serializable, Equals, Function0<A>, Monad<A> { public A get() { if (empty) { throw new NoSuchElementException("Option is empty!"); } else { return value; } } private  Option(); private  Option(A value); @SuppressWarnings("unchecked") static Option<A> narrow(Option<? extends A> option); @SuppressWarnings("unchecked") static Option<A> none(); @SuppressWarnings("unchecked") static Option<A> some(A value); static Option<A> of(A value); Iterator<A> iterator(); boolean isEmpty(); boolean nonEmpty(); A get(); A getValue(); A invoke(); @SuppressWarnings("unchecked") A orElse(Function0<? extends A> f); A orDefault(A a); A orNull(); A orThrow(Function0<? extends T> exceptionSupplier); @Override void foreach(ToVoidFunction1<? super A> f); @Override Functor<B> map(Function1<? super A, ? extends B> mapper); @Override Monad<B> flatMap(Function1<? super A, ? extends Monad<B>> mapper); Option<A> filter(ToBoolFunction1<A> p); Option<A> filterNot(ToBoolFunction1<A> p); Optional<A> asJava(); @Override String toString(); @Override boolean canEqual(Object that); @Override boolean equals(Object obj); static final Option<Null> None; static final Option<Null> Null; }