Uses of Class
org.storynode.pigeon.option.Option

Packages that use Option
Package
Description
Assertions for Option, Result and other types
Optional, non-null, non-throwing wrapper types
Tuples are heterogeneous collections of fixed size from zero to n elements, in order.
  • Uses of Option in org.storynode.pigeon.assertion

    Methods in org.storynode.pigeon.assertion with parameters of type Option
    Modifier and Type
    Method
    Description
    static <T> @NotNull OptionAssert<T>
    Assertions.assertThat(Option<T> actual)
    assertThat.
    Method parameters in org.storynode.pigeon.assertion with type arguments of type Option
    Modifier and Type
    Method
    Description
    OptionAssert.returns(U expected, @NotNull Function<Option<T>,U> provider)
    returns.
    Constructors in org.storynode.pigeon.assertion with parameters of type Option
    Modifier
    Constructor
    Description
     
    Constructor for OptionAssert.
  • Uses of Option in org.storynode.pigeon.option

    Modifier and Type
    Class
    Description
    class 
    None<T>
    Represents an Option with no value
    class 
    Some<T>
    An Option with some value in it.
    Fields in org.storynode.pigeon.option declared as Option
    Modifier and Type
    Field
    Description
    protected static final Option<?>
    Constant INSTANCE
    Methods in org.storynode.pigeon.option that return Option
    Modifier and Type
    Method
    Description
    None.filter(Predicate<? super T> predicate)
    If a value is present, and the value matches the given predicate, returns an Option describing the value, otherwise returns an empty Option.
    abstract Option<T>
    Option.filter(Predicate<? super T> predicate)
    If a value is present, and the value matches the given predicate, returns an Option describing the value, otherwise returns an empty Option.
    Some.filter(Predicate<? super T> predicate)
    If a value is present, and the value matches the given predicate, returns an Option describing the value, otherwise returns an empty Option.
    <U> Option<U>
    None.flatMap(Function<? super T,? extends Option<? extends U>> mapper)
    If a value is present, returns the result of applying the given Optional-bearing mapping function to the value, otherwise returns an empty Optional.
    abstract <U> Option<U>
    Option.flatMap(Function<? super T,? extends Option<? extends U>> mapper)
    If a value is present, returns the result of applying the given Optional-bearing mapping function to the value, otherwise returns an empty Optional.
    <U> Option<U>
    Some.flatMap(@NotNull Function<? super T,? extends Option<? extends U>> mapper)
    If a value is present, returns the result of applying the given Optional-bearing mapping function to the value, otherwise returns an empty Optional.
    <U> Option<U>
    None.map(@NotNull Function<T,U> mapper)
    If a value is present, returns an Option describing (as if by some(T)) the result of applying the given mapping function to the value, otherwise returns an empty Option.
    abstract <U> Option<U>
    Option.map(@NotNull Function<T,U> mapper)
    If a value is present, returns an Option describing (as if by some(T)) the result of applying the given mapping function to the value, otherwise returns an empty Option.
    <U> Option<U>
    Some.map(@NotNull Function<T,U> mapper)
    If a value is present, returns an Option describing (as if by some(T)) the result of applying the given mapping function to the value, otherwise returns an empty Option.
    static <T> @NotNull Option<T>
    Option.of(@NotNull Supplier<T> valueSupplier)
    Creates a new Option with some value in it.
    static <T> @NotNull Option<T>
    Option.of(T value)
    Creates a new Option with some value in it.
    Option<? extends T>
    None.or(@NotNull Supplier<? extends Option<? extends T>> supplier)
    If a value is present, returns an Option describing the value, otherwise returns an Option produced by the given supplying function
    abstract Option<? extends T>
    Option.or(@NotNull Supplier<? extends Option<? extends T>> supplier)
    If a value is present, returns an Option describing the value, otherwise returns an Option produced by the given supplying function
    Option<? extends T>
    Some.or(@NotNull Supplier<? extends Option<? extends T>> supplier)
    If a value is present, returns an Option describing the value, otherwise returns an Option produced by the given supplying function
    static <T> @NotNull Option<T>
    Option.some(T value)
    Creates a new Option with some value in it.
    Method parameters in org.storynode.pigeon.option with type arguments of type Option
    Modifier and Type
    Method
    Description
    <U> Option<U>
    None.flatMap(Function<? super T,? extends Option<? extends U>> mapper)
    If a value is present, returns the result of applying the given Optional-bearing mapping function to the value, otherwise returns an empty Optional.
    abstract <U> Option<U>
    Option.flatMap(Function<? super T,? extends Option<? extends U>> mapper)
    If a value is present, returns the result of applying the given Optional-bearing mapping function to the value, otherwise returns an empty Optional.
    <U> Option<U>
    Some.flatMap(@NotNull Function<? super T,? extends Option<? extends U>> mapper)
    If a value is present, returns the result of applying the given Optional-bearing mapping function to the value, otherwise returns an empty Optional.
    Option<? extends T>
    None.or(@NotNull Supplier<? extends Option<? extends T>> supplier)
    If a value is present, returns an Option describing the value, otherwise returns an Option produced by the given supplying function
    abstract Option<? extends T>
    Option.or(@NotNull Supplier<? extends Option<? extends T>> supplier)
    If a value is present, returns an Option describing the value, otherwise returns an Option produced by the given supplying function
    Option<? extends T>
    Some.or(@NotNull Supplier<? extends Option<? extends T>> supplier)
    If a value is present, returns an Option describing the value, otherwise returns an Option produced by the given supplying function
  • Uses of Option in org.storynode.pigeon.tuple

    Methods in org.storynode.pigeon.tuple that return Option
    Modifier and Type
    Method
    Description
    @NotNull Option<Object>
    Pair.at(int index)
    @NotNull Option<Object>
    Quartet.at(int index)
    @NotNull Option<Object>
    Quintet.at(int index)
    @NotNull Option<Object>
    Triplet.at(int index)