com.partnersoft.v3x.data
Class PadWithZeros

java.lang.Object
  extended by com.partnersoft.v3x.data.PadWithZeros
All Implemented Interfaces:
ObjectTransform

public class PadWithZeros
extends java.lang.Object
implements ObjectTransform

Pads a string with zeros. Kind of dumb that way. Whatever.


Constructor Summary
PadWithZeros()
           
PadWithZeros(int length)
           
 
Method Summary
 int getLength()
           
static java.lang.String pad(java.lang.String victim, int length)
           
 void setLength(int newLength)
           
 java.lang.Object transform(int victim)
           
 java.lang.Object transform(java.lang.Object victim)
          Our one method; this transforms one object into another.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PadWithZeros

public PadWithZeros()

PadWithZeros

public PadWithZeros(int length)
Method Detail

pad

public static java.lang.String pad(java.lang.String victim,
                                   int length)

transform

public java.lang.Object transform(java.lang.Object victim)
Description copied from interface: ObjectTransform
Our one method; this transforms one object into another. Transformation must be nondestructive, but may produce a derived product that is still affected by changes to the original, so beware.

Specified by:
transform in interface ObjectTransform

transform

public java.lang.Object transform(int victim)

getLength

public int getLength()

setLength

public void setLength(int newLength)