public class ValueFormatter extends Object
Modifier | Constructor and Description |
---|---|
private |
ValueFormatter() |
Modifier and Type | Method and Description |
---|---|
String |
format(boolean v)
Format a boolean value as a string.
|
String |
format(byte v)
Format a byte value as a string.
|
String |
format(double v)
Format a double precision value as a string.
|
String |
format(float v)
Format a float value as a string.
|
String |
format(int v)
Format an integer value as a string.
|
String |
format(long v)
Format a long integer value as a string.
|
boolean |
parseBoolean(String s)
Parse a boolean representation.
|
byte |
parseByte(String s)
Parse a byte representation.
|
double |
parseDouble(String s)
Parse a double precision representation.
|
float |
parseFloat(String s)
Parse a float representation.
|
int |
parseInt(String s)
Parse an integer representation.
|
long |
parseLong(String s)
Parse a long integer representation.
|
private ValueFormatter()
public String format(byte v)
v
- The value to format.public byte parseByte(String s) throws ParsingException
s
- The string to parse.ParsingException
- If parsing failed.public String format(int v)
v
- The value to format.public int parseInt(String s) throws ParsingException
s
- The string to parse.ParsingException
- If parsing failed.public String format(long v)
v
- The value to format.public long parseLong(String s) throws ParsingException
s
- The string to parse.ParsingException
- If parsing failed.public String format(float v)
v
- The value to format.public float parseFloat(String s) throws ParsingException
s
- The string to parse.ParsingException
- If parsing failed.public String format(double v)
v
- The value to format.public double parseDouble(String s) throws ParsingException
s
- The string to parse.ParsingException
- If parsing failed.public String format(boolean v)
v
- The value to format.public boolean parseBoolean(String s)
s
- The string to parse.WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses