|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsbrt.shell.text.math.IntervalFormatV1
public final class IntervalFormatV1
This class is a concrete implementation of IntervalFormat.
The string representation of intervals used by this class is:
[LowerBound; UpperBound]
.
Constructor Summary | |
---|---|
IntervalFormatV1()
Constructs a new interval format. |
Method Summary | |
---|---|
java.lang.String |
format(Interval interval)
Returns a formatted string representation of the provided interval. |
DoubleFormatV1 |
getDoubleFormat()
Returns the double format used for bounds. |
Interval |
parse(java.lang.String interval)
Parses the provided string and returns its corresponding interval. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IntervalFormatV1()
Method Detail |
---|
public DoubleFormatV1 getDoubleFormat()
public java.lang.String format(Interval interval)
format
in interface Formatter<Interval>
interval
- the interval to be formatted.
public Interval parse(java.lang.String interval)
parse
in interface Parser<Interval>
interval
- the string to be parsed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |