Interface ValueSerializer<TYPE>

  • Type Parameters:
    TYPE - The type of value
    All Known Implementing Classes:
    PrimitiveAdapter, ValueAdapter
    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 ValueSerializer<TYPE>
    Value serializer, convert target value to base data.
    • Method Detail

      • serialize

        java.lang.Object serialize​(@NotNull
                                   @NotNull ConfigurationHolder<?> holder,
                                   @NotNull
                                   @NotNull ValueType<? super TYPE> type,
                                   @NotNull
                                   TYPE value)
                            throws java.lang.Exception
        Throws:
        java.lang.Exception