Package org.apache.log4j.pattern
Class RelativeTimePatternConverter.CachedTimestamp
- java.lang.Object
-
- org.apache.log4j.pattern.RelativeTimePatternConverter.CachedTimestamp
-
- Enclosing class:
- RelativeTimePatternConverter
private static final class RelativeTimePatternConverter.CachedTimestamp extends java.lang.Object
Cached timestamp and formatted value.
-
-
Constructor Summary
Constructors Constructor Description CachedTimestamp(long timestamp, java.lang.String formatted)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
format(long newTimestamp, java.lang.StringBuffer toAppendTo)
Appends the cached formatted timestamp to the buffer if timestamps match.
-
-
-
Method Detail
-
format
public boolean format(long newTimestamp, java.lang.StringBuffer toAppendTo)
Appends the cached formatted timestamp to the buffer if timestamps match.- Parameters:
newTimestamp
- requested timestamp.toAppendTo
- buffer to append formatted timestamp.- Returns:
- true if requested timestamp matched cached timestamp.
-
-