Package org.apache.ofbiz.base.conversion
Class GenericSingletonToList<T>
- java.lang.Object
-
- org.apache.ofbiz.base.conversion.AbstractConverter<T,java.util.List<T>>
-
- org.apache.ofbiz.base.conversion.GenericSingletonToList<T>
-
- All Implemented Interfaces:
Converter<T,java.util.List<T>>
,ConverterLoader
- Direct Known Subclasses:
BooleanConverters.BooleanToList
,CollectionConverters.StringToList
,DateTimeConverters.DurationToList
,DateTimeConverters.SqlDateToList
,DateTimeConverters.SqlTimeToList
,DateTimeConverters.TimestampToList
public class GenericSingletonToList<T> extends AbstractConverter<T,java.util.List<T>>
-
-
Constructor Summary
Constructors Constructor Description GenericSingletonToList(java.lang.Class<T> sourceClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<T>
convert(T obj)
Convertsobj
toT
.-
Methods inherited from class org.apache.ofbiz.base.conversion.AbstractConverter
canConvert, convert, getSourceClass, getTargetClass, loadConverters
-
-
-
-
Constructor Detail
-
GenericSingletonToList
public GenericSingletonToList(java.lang.Class<T> sourceClass)
-
-
Method Detail
-
convert
public java.util.List<T> convert(T obj) throws ConversionException
Description copied from interface:Converter
Convertsobj
toT
.- Parameters:
obj
- The sourceObject
to convert- Returns:
- The converted
Object
- Throws:
ConversionException
-
-