Class TypeConversion
java.lang.Object
org.dalesbred.internal.instantiation.TypeConversion
A conversion from S into T.
-
Method Summary
Modifier and TypeMethodDescription@NotNull TypeConversion
@Nullable Object
static <S,
T> @NotNull TypeConversion fromNonNullFunction
(@NotNull Function<S, T> function) static @NotNull TypeConversion
identity()
Returns identity-conversion, ie.
-
Method Details
-
fromNonNullFunction
@NotNull public static <S,T> @NotNull TypeConversion fromNonNullFunction(@NotNull @NotNull Function<S, T> function) -
identity
Returns identity-conversion, ie. a conversion that does nothing. -
convert
-
compose
-