org.apache.commons.convert
Class GenericSingletonToSet<T>

java.lang.Object
  extended by org.apache.commons.convert.AbstractConverter<T,Set<T>>
      extended by 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.


Constructor Summary
GenericSingletonToSet(Class<T> sourceClass)
           
 
Method Summary
 Set<T> convert(T obj)
          Converts obj to T.
 
Methods inherited from class org.apache.commons.convert.AbstractConverter
canConvert, getSourceClass, getTargetClass, loadConverters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericSingletonToSet

public GenericSingletonToSet(Class<T> sourceClass)
Method Detail

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.