org.apache.commons.convert
Class GenericSingletonToSet<T>
java.lang.Object
org.apache.commons.convert.AbstractConverter<T,Set<T>>
org.apache.commons.convert.GenericSingletonToSet<T>
- All Implemented Interfaces:
- Converter<T,Set<T>>, ConverterLoader
public class GenericSingletonToSet<T>
- extends AbstractConverter<T,Set<T>>
An object that creates a Set
and adds an object to the
Set
.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenericSingletonToSet
public GenericSingletonToSet(Class<T> sourceClass)
convert
public Set<T> convert(T obj)
throws ConversionException
- Description copied from interface:
Converter
- Converts
obj
to T
.
- Parameters:
obj
- The source Object
to convert
- Returns:
- The converted
Object
- Throws:
ConversionException
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.