Class TypeConversion


  • public class TypeConversion
    extends java.lang.Object
    A conversion from S into T.
    • Method Detail

      • fromNonNullFunction

        @NotNull
        public static <S,​T> @NotNull TypeConversion fromNonNullFunction​(@NotNull
                                                                              @NotNull java.util.function.Function<S,​T> function)
      • identity

        @NotNull
        public static @NotNull TypeConversion identity()
        Returns identity-conversion, ie. a conversion that does nothing.
      • convert

        @Nullable
        public @Nullable java.lang.Object convert​(@Nullable
                                                  @Nullable java.lang.Object value)
      • compose

        @NotNull
        public @NotNull TypeConversion compose​(@NotNull
                                               @NotNull java.util.function.Function<?,​?> function)