java.lang.Object
net.i2p.router.web.GraphThemeColors.Entry
- Enclosing class:
GraphThemeColors
A theme's parsed declarations and the timestamps they were parsed from.
The timestamp is what makes a theme edit visible without a restart. The minigraph picks up a CSS change on page refresh because the browser re-reads the stylesheet; these colours are resolved on the server, so nothing would re-read them and an edit would otherwise need a router restart to show up.
Field Summary
Constructor Summary
Method Summary
All MethodsModifier and TypeMethodDescription(package private) booleanusable(long modified, long now) Whether the cached entry still matches its file.
Field Details
modified
final long modifiedWhen the theme file was last modified.parsedAt
final long parsedAtWhen the theme file was parsed.variables
Constructor Details
Entry
Method Details
usable
boolean usable(long modified, long now) Whether the cached entry still matches its file.- Parameters:
modified- the file's current modified timenow- the current time- Returns:
- true if the entry matches the file and has not aged out