|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.text.Format
consciouscode.util.MinuteTimeFormat
public class MinuteTimeFormat
A Format that renders time-of-day from a value representing minutes since midnight.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.text.Format |
|---|
Format.Field |
| Constructor Summary | |
|---|---|
MinuteTimeFormat()
Create a new format rendering civilian time. |
|
MinuteTimeFormat(boolean militaryTime)
|
|
| Method Summary | |
|---|---|
String |
format(int minuteOfDay)
Render the given time into a new String. |
StringBuffer |
format(int minuteOfDay,
StringBuffer buffer,
FieldPosition pos)
Render the given time into a buffer. |
StringBuffer |
format(Object object,
StringBuffer buffer,
FieldPosition pos)
|
static String |
formatCivilianTime(int minuteOfDay)
Generate a string displaying the time. |
static MinuteTimeFormat |
getInstance()
Get the global default instance (using civilian time). |
boolean |
isMilitaryTime()
|
Object |
parseObject(String source,
ParsePosition status)
Not implemented. |
| Methods inherited from class java.text.Format |
|---|
clone, format, formatToCharacterIterator, parseObject |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MinuteTimeFormat()
public MinuteTimeFormat(boolean militaryTime)
| Method Detail |
|---|
public static MinuteTimeFormat getInstance()
public static String formatCivilianTime(int minuteOfDay)
public boolean isMilitaryTime()
public String format(int minuteOfDay)
minuteOfDay - must be between 0 and 1440 inclusive.
public StringBuffer format(int minuteOfDay,
StringBuffer buffer,
FieldPosition pos)
minuteOfDay - must be between 0 and 1440 inclusive.pos - is ignored.
public StringBuffer format(Object object,
StringBuffer buffer,
FieldPosition pos)
format in class Formatobject - must be an Integer between 0 and 1440 inclusive.pos - is ignored.
public Object parseObject(String source,
ParsePosition status)
parseObject in class FormatUnsupportedOperationException - on every call.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||