Plexus v0.13.1

com.phoenixst.plexus.examples
Class IntegerOffsetTransformer

java.lang.Object
  extended by com.phoenixst.plexus.examples.IntegerOffsetTransformer
All Implemented Interfaces:
InvertibleTransformer, Serializable, org.apache.commons.collections.Transformer

public class IntegerOffsetTransformer
extends Object
implements InvertibleTransformer, Serializable

An InvertibleTransformer which adds an offset to Integers.

Since:
1.0
Version:
$Revision: 1.8 $
Author:
Ray A. Conner
See Also:
Serialized Form

Constructor Summary
IntegerOffsetTransformer(int offset)
          Creates a new IntegerOffsetTransformer.
 
Method Summary
 Object transform(Object object)
           
 Object untransform(Object object)
          Performs the inverse operation of transform( Object ) upon the specified object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegerOffsetTransformer

public IntegerOffsetTransformer(int offset)
Creates a new IntegerOffsetTransformer.

Method Detail

transform

public Object transform(Object object)
Specified by:
transform in interface org.apache.commons.collections.Transformer

untransform

public Object untransform(Object object)
Description copied from interface: InvertibleTransformer
Performs the inverse operation of transform( Object ) upon the specified object.

Specified by:
untransform in interface InvertibleTransformer

Plexus v0.13.1

See the Plexus project home, hosted by SourceForge.
Copyright ? 1994-2006, by Phoenix Software Technologists, Inc. and others. All Rights Reserved. Use is subject to license terms.