private static final class RelativeTimePatternConverter.CachedTimestamp extends Object
Modifier and Type | Field and Description |
---|---|
private String |
formatted
Cached formatted timestamp.
|
private long |
timestamp
Cached timestamp.
|
Constructor and Description |
---|
CachedTimestamp(long timestamp,
String formatted)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
format(long newTimestamp,
StringBuffer toAppendTo)
Appends the cached formatted timestamp to the buffer if timestamps match.
|
private final long timestamp
public CachedTimestamp(long timestamp, String formatted)
timestamp
- timestamp.formatted
- formatted timestamp.public boolean format(long newTimestamp, StringBuffer toAppendTo)
newTimestamp
- requested timestamp.toAppendTo
- buffer to append formatted timestamp.WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses