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 Detail

      • accept

        void accept​(@NotNull
                    @NotNull ConfigurationHolder<?> holder,
                    @NotNull
                    T type,
                    @NotNull
                    U data)
             throws java.lang.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:
        java.lang.Exception - If an error occurs