Class NumericIdentifierConverter
java.lang.Object
de.vinado.spring.identifier.convert.NumericIdentifierConverter
- All Implemented Interfaces:
ConditionalConverter,ConditionalGenericConverter,GenericConverter
@ReadingConverter
public class NumericIdentifierConverter
extends Object
implements ConditionalGenericConverter
ReadingConverter wrapping a string value into a new instance of StringIdentifier.- Author:
- Vincent Nadoll
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.core.convert.converter.GenericConverter
GenericConverter.ConvertiblePair -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final TypeDescriptorprotected static final TypeDescriptorprotected static final TypeDescriptorprotected static final TypeDescriptor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) booleanmatches(TypeDescriptor sourceType, TypeDescriptor targetType)
-
Field Details
-
STRING_TYPE
-
INTEGER_TYPE
-
LONG_TYPE
-
IDENTIFIER_TYPE
-
-
Constructor Details
-
NumericIdentifierConverter
public NumericIdentifierConverter()
-
-
Method Details
-
matches
- Specified by:
matchesin interfaceConditionalConverter
-
getConvertibleTypes
- Specified by:
getConvertibleTypesin interfaceGenericConverter
-
convert
@Nullable public Object convert(@Nullable Object source, TypeDescriptor sourceType, TypeDescriptor targetType) - Specified by:
convertin interfaceGenericConverter
-