|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsbrt.shell.text.LongFormatV1
public class LongFormatV1
This class is a concrete implementation of LongFormat.
Constructor Summary | |
---|---|
LongFormatV1()
|
Method Summary | |
---|---|
java.lang.String |
format(long i)
Parses the provided string and returns its corresponding long. |
java.lang.String |
format(java.lang.Long i)
Returns a formatted string representation of the provided long. |
java.lang.Long |
parse(java.lang.String i)
Parses the provided string and returns its corresponding long. |
long |
parsePrimitive(java.lang.String i)
Parses the provided string and returns its corresponding long. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LongFormatV1()
Method Detail |
---|
public java.lang.String format(java.lang.Long i)
format
in interface Formatter<java.lang.Long>
format
in interface LongFormat
i
- the long to be formatted.
public java.lang.String format(long i)
format
in interface LongFormat
i
- the string to be parsed.
FormatException
- if the provided string
is not parsable as a long.
java.lang.NullPointerException
- if the provided
argument is null
.public java.lang.Long parse(java.lang.String i)
parse
in interface LongFormat
parse
in interface Parser<java.lang.Long>
i
- the string to be parsed.
FormatException
- if the provided string
is not parsable as a long.
java.lang.NullPointerException
- if the provided
argument is null
.public long parsePrimitive(java.lang.String i)
parsePrimitive
in interface LongFormat
i
- the string to be parsed.
FormatException
- if the provided string
is not parsable as a long.
java.lang.NullPointerException
- if the provided
argument is null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |