Interface ValueComposer<T,U>

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 ValueComposer<T,U>
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(@NotNull ConfigurationHolder<?> holder, T type, U data)
    Accept the value and the data, and then compose the value.
    default ValueComposer<T,U>
    andThen(ValueComposer<? super T,? super U> after)
     
  • Method Details

    • accept

      void accept(@NotNull @NotNull ConfigurationHolder<?> holder, @NotNull T type, @NotNull U data) throws Exception
      Accept the value and the data, and then compose the value.
      Parameters:
      holder - The configuration holder
      type - The value type, e.g. List, Map, etc.
      data - The unit data
      Throws:
      Exception - If an error occurs
    • andThen

      default ValueComposer<T,U> andThen(ValueComposer<? super T,? super U> after)