Forge - Convert API 2.0.0.Alpha3

org.jboss.forge.convert
Class CompositeConverter

java.lang.Object
  extended by 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

Constructor Summary
CompositeConverter(Converter... converters)
           
 
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
 

Constructor Detail

CompositeConverter

public CompositeConverter(Converter... converters)
Method Detail

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

Forge - Convert API 2.0.0.Alpha3

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.