|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.x4juli.formatter.pattern.RelativeTimePatternConverter.CachedTimestamp
Cached timestamp and formatted value.
| Field Summary | |
private java.lang.String |
formatted
Cached formatted timestamp. |
private long |
timestamp
Cached timestamp. |
| Constructor Summary | |
RelativeTimePatternConverter.CachedTimestamp(long timestamp,
java.lang.String formatted)
Creates a new instance. |
|
| Method Summary | |
boolean |
format(long newTimestamp,
java.lang.StringBuffer toAppendTo)
Appends the cached formatted timestamp to the buffer if timestamps match. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private final long timestamp
private final java.lang.String formatted
| Constructor Detail |
public RelativeTimePatternConverter.CachedTimestamp(long timestamp,
java.lang.String formatted)
timestamp - timestamp.formatted - formatted timestamp.| Method Detail |
public boolean format(long newTimestamp,
java.lang.StringBuffer toAppendTo)
newTimestamp - requested timestamp.toAppendTo - buffer to append formatted timestamp.
public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||