Interface ValueHandler<T,​R>

  • 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 ValueHandler<T,​R>
    • Method Detail

      • handle

        @Nullable
        R handle​(@NotNull
                 @NotNull ConfigurationHolder<?> holder,
                 @NotNull
                 T data)
          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • identity

        @Contract(pure=true)
        @NotNull
        static <T> @NotNull ValueHandler<T,​T> identity()
      • toObject

        @Contract(pure=true)
        @NotNull
        static <T> @NotNull ValueHandler<T,​java.lang.Object> toObject()
      • stringValue

        @Contract(pure=true)
        @NotNull
        static <T> @NotNull ValueHandler<T,​java.lang.String> stringValue()
      • deserialize

        @Contract(pure=true)
        @NotNull
        static <O,​T> @NotNull ValueHandler<O,​T> deserialize​(ValueType<T> to)
      • required

        @Contract(pure=true)
        @NotNull
        static <T,​V> @NotNull ValueHandler<T,​V> required()
      • required

        @Contract(pure=true)
        @NotNull
        static <T,​V> @NotNull ValueHandler<T,​V> required​(ValueType<V> type)