com.partnersoft.v3x.data
Class PadWithZeros
java.lang.Object
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.
|
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 |
PadWithZeros
public PadWithZeros()
PadWithZeros
public PadWithZeros(int length)
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)