Package ubic.gemma.persistence.util
Class GenericValueObjectConverter<O extends Identifiable,VO extends IdentifiableValueObject<?>>
- java.lang.Object
-
- ubic.gemma.persistence.util.GenericValueObjectConverter<O,VO>
-
- All Implemented Interfaces:
ConditionalConverter,ConditionalGenericConverter,GenericConverter
public class GenericValueObjectConverter<O extends Identifiable,VO extends IdentifiableValueObject<?>> extends Object implements ConditionalGenericConverter
Generic value object converter.Performs conversion from entity to value object using a provided
Converter.- Author:
- poirigui
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.springframework.core.convert.converter.GenericConverter
GenericConverter.ConvertiblePair
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectconvert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType)Set<GenericConverter.ConvertiblePair>getConvertibleTypes()booleanmatches(TypeDescriptor sourceType, TypeDescriptor targetType)
-
-
-
Method Detail
-
getConvertibleTypes
public Set<GenericConverter.ConvertiblePair> getConvertibleTypes()
- Specified by:
getConvertibleTypesin interfaceGenericConverter
-
matches
public boolean matches(TypeDescriptor sourceType, TypeDescriptor targetType)
- Specified by:
matchesin interfaceConditionalConverter
-
convert
public Object convert(@Nullable Object source, TypeDescriptor sourceType, TypeDescriptor targetType)
- Specified by:
convertin interfaceGenericConverter
-
-