public class FormatInfo extends Object
| Constructor and Description |
|---|
FormatInfo() |
FormatInfo(int min,
int max) |
FormatInfo(int min,
int max,
boolean leftPad,
boolean leftTruncate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
getMax() |
int |
getMin() |
int |
hashCode() |
boolean |
isLeftPad() |
boolean |
isLeftTruncate() |
void |
setLeftPad(boolean leftAlign) |
void |
setLeftTruncate(boolean leftTruncate) |
void |
setMax(int max) |
void |
setMin(int min) |
String |
toString() |
static FormatInfo |
valueOf(String str)
This method is used to parse a string such as "5", ".7", "5.7" or "-5.7" into
a FormatInfo.
|
public FormatInfo()
public FormatInfo(int min,
int max)
public FormatInfo(int min,
int max,
boolean leftPad,
boolean leftTruncate)
public static FormatInfo valueOf(String str) throws IllegalArgumentException
str - A String to convert into a FormatInfo objectIllegalArgumentExceptionpublic boolean isLeftPad()
public void setLeftPad(boolean leftAlign)
public int getMax()
public void setMax(int max)
public int getMin()
public void setMin(int min)
public boolean isLeftTruncate()
public void setLeftTruncate(boolean leftTruncate)
Copyright © 2005-2013 QOS.ch. All Rights Reserved.