org.jboss.forge.convert
Class CompositeConverter
java.lang.Object
org.jboss.forge.convert.CompositeConverter
- All Implemented Interfaces:
- Converter<Object,Object>
@Vetoed
public class CompositeConverter
- extends Object
- implements Converter<Object,Object>
A CompositeConverter converts elements in the specified sequence.
The result of a Converter serves as the input for the next converter
The convert(Object) method always returns the last object converted
- Author:
- George Gastaldi
|
Method Summary |
Object |
convert(Object source)
This method always returns the last object converted from the list |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompositeConverter
public CompositeConverter(Converter... converters)
convert
public Object convert(Object source)
- This method always returns the last object converted from the list
- Specified by:
convert in interface Converter<Object,Object>
- Parameters:
source - the source object to convert, which must be an instance of S
- Returns:
- the converted object, which must be an instance of T
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.