Interface Box<T>

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Box<T>
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default T
    get()
     
    default <R> Box<R>
    map(Function<? super T,? extends R> mapper)
     
    static <T> Box<T>
    of(T value)
     
     
  • Method Details

    • valueHolder

      Box.ValueHolder<T> valueHolder()
    • of

      static <T> Box<T> of(T value)
    • map

      default <R> Box<R> map(Function<? super T,? extends R> mapper)
    • get

      default T get()