Package org.apache.ofbiz.base.conversion
Class GenericSingletonToSet<T>
- java.lang.Object
-
- org.apache.ofbiz.base.conversion.AbstractConverter<T,java.util.Set<T>>
-
- org.apache.ofbiz.base.conversion.GenericSingletonToSet<T>
-
- All Implemented Interfaces:
Converter<T,java.util.Set<T>>
,ConverterLoader
- Direct Known Subclasses:
BooleanConverters.BooleanToSet
,CollectionConverters.StringToSet
,DateTimeConverters.DurationToSet
,DateTimeConverters.SqlDateToSet
,DateTimeConverters.SqlTimeToSet
,DateTimeConverters.TimestampToSet
public class GenericSingletonToSet<T> extends AbstractConverter<T,java.util.Set<T>>
-
-
Constructor Summary
Constructors Constructor Description GenericSingletonToSet(java.lang.Class<T> sourceClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<T>
convert(T obj)
Convertsobj
toT
.-
Methods inherited from class org.apache.ofbiz.base.conversion.AbstractConverter
canConvert, convert, getSourceClass, getTargetClass, loadConverters
-
-
-
-
Constructor Detail
-
GenericSingletonToSet
public GenericSingletonToSet(java.lang.Class<T> sourceClass)
-
-
Method Detail
-
convert
public java.util.Set<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
-
-