Interface Initializer<T>

  • All Known Implementing Classes:
    Initializer.EmptyInitializer
    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 Initializer<T>
    Author:
    Fabrizio Giudici
    Status: draft API
    • Method Detail

      • initialize

        T initialize​(@Nonnull
                     T object)
        Parameters:
        object - an argument
        Returns:
        the argument
      • empty

        @Nonnull
        static <T> Initializer<T> empty()
        Type Parameters:
        T - the static type
        Returns:
        an empty initializer
        Since:
        3.2-ALPHA-2