|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<Align>
com.ancientprogramming.fixedformat4j.annotation.Align
public enum Align
Capable of pad or chop data in a given direction
| Enum Constant Summary | |
|---|---|
LEFT
Pad or chop data to the right, so the text is aligned to the left |
|
RIGHT
Pad or chop data to the left, so the text is aligned to the right |
|
| Method Summary | |
|---|---|
abstract java.lang.String |
apply(java.lang.String data,
int length,
char paddingChar)
Pads the data in the length specified with the given padding char. |
abstract java.lang.String |
remove(java.lang.String data,
char paddingChar)
Remove the padding chars from the data. |
static Align |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Align[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Align RIGHT
public static final Align LEFT
| Method Detail |
|---|
public static final Align[] values()
for(Align c : Align.values())
System.out.println(c);
public static Align valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
public abstract java.lang.String apply(java.lang.String data,
int length,
char paddingChar)
data - the data to pad.length - the minimum length after the padding is applied.paddingChar - the char the data is padded with.
public abstract java.lang.String remove(java.lang.String data,
char paddingChar)
data - the data including padding charspaddingChar - the padding char to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||