Class ConsEnumConverter
-
- All Implemented Interfaces:
-
org.springframework.core.convert.converter.Converter,pro.fessional.mirana.cast.BiConvertor,pro.fessional.wings.faceless.converter.WingsConverter
public class ConsEnumConverter<E extends ConstantEnum> implements WingsConverter<S, T>
ConstantEnum to wings jooq
- Since:
2021-01-14
trydofor
-
-
Constructor Summary
Constructors Constructor Description ConsEnumConverter(Class<E> toType, Array<E> values)
-
Method Summary
Modifier and Type Method Description Class<Integer>sourceType()Class<E>targetType()EtoTarget(Integer s)IntegertoSource(E t)static <E extends Enum<E>, ConstantEnum> ConsEnumConverter<E>of(Class<E> toType)static <E extends ConstantEnum> ConsEnumConverter<E>of(Class<E> toType, Array<E> values)-
Methods inherited from class pro.fessional.wings.faceless.converter.WingsConverter
convert -
Methods inherited from class pro.fessional.mirana.cast.BiConvertor
canToSource, canToTarget, compose, of, reverseBiConvertor, tryToSource, tryToTarget -
Methods inherited from class org.springframework.core.convert.converter.Converter
andThen, convert -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
sourceType
@NotNull() Class<Integer> sourceType()
-
targetType
@NotNull() Class<E> targetType()
-
of
static <E extends Enum<E>, ConstantEnum> ConsEnumConverter<E> of(Class<E> toType)
-
of
@SafeVarargs() static <E extends ConstantEnum> ConsEnumConverter<E> of(Class<E> toType, Array<E> values)
-
-
-
-