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
Modifier and TypeFieldDescriptionprotected static final TypeDescriptor
protected static final TypeDescriptor
protected static final TypeDescriptor
protected static final TypeDescriptor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconvert
(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) boolean
matches
(TypeDescriptor sourceType, TypeDescriptor targetType)
-
Field Details
-
STRING_TYPE
-
INTEGER_TYPE
-
LONG_TYPE
-
IDENTIFIER_TYPE
-
-
Constructor Details
-
NumericIdentifierConverter
public NumericIdentifierConverter()
-
-
Method Details
-
matches
- Specified by:
matches
in interfaceConditionalConverter
-
getConvertibleTypes
- Specified by:
getConvertibleTypes
in interfaceGenericConverter
-
convert
@Nullable public Object convert(@Nullable Object source, TypeDescriptor sourceType, TypeDescriptor targetType) - Specified by:
convert
in interfaceGenericConverter
-