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
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T> Initializer<T>
     
    initialize(T object)
     
  • Method Details

    • 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