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

      • parse

        @NotNull
        R parse​(@NotNull
                T data)
         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • identity

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

        @Contract(pure=true)
        @NotNull
        static <T> @NotNull ConfigDataFunction<T,​T> identity​(java.lang.Class<T> type)
      • required

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

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

        @Contract(pure=true)
        @NotNull
        static <V> @NotNull ConfigDataFunction<java.lang.Object,​V> castObject​(java.lang.Class<V> valueClass)
      • castFromString

        @Contract(pure=true)
        @NotNull
        static <V> @NotNull ConfigDataFunction<java.lang.String,​V> castFromString​(java.lang.Class<V> valueClass)
      • castToString

        @Contract(pure=true)
        @NotNull
        static <T> @NotNull ConfigDataFunction<T,​java.lang.String> castToString()
      • parseString

        @Contract(pure=true)
        @NotNull
        static <V> @NotNull ConfigDataFunction<java.lang.String,​V> parseString​(java.lang.Class<V> valueClass)
      • intValue

        @Contract(pure=true)
        @NotNull
        static @NotNull ConfigDataFunction<java.lang.Object,​java.lang.Integer> intValue()
      • shortValue

        @Contract(pure=true)
        @NotNull
        static @NotNull ConfigDataFunction<java.lang.Object,​java.lang.Short> shortValue()
      • doubleValue

        @Contract(pure=true)
        @NotNull
        static @NotNull ConfigDataFunction<java.lang.Object,​java.lang.Double> doubleValue()
      • byteValue

        @Contract(pure=true)
        @NotNull
        static @NotNull ConfigDataFunction<java.lang.Object,​java.lang.Byte> byteValue()
      • floatValue

        @Contract(pure=true)
        @NotNull
        static @NotNull ConfigDataFunction<java.lang.Object,​java.lang.Float> floatValue()
      • longValue

        @Contract(pure=true)
        @NotNull
        static @NotNull ConfigDataFunction<java.lang.Object,​java.lang.Long> longValue()
      • booleanValue

        @Contract(pure=true)
        @NotNull
        static @NotNull ConfigDataFunction<java.lang.Object,​java.lang.Boolean> booleanValue()