home *** CD-ROM | disk | FTP | other *** search
- package com.bitmechanic.gsp;
-
- public class CachedString {
- private long expireTime;
- private String value;
-
- public CachedString(String var1, long var2) {
- this.expireTime = System.currentTimeMillis() + var2;
- this.value = var1;
- }
-
- public String toString() {
- return this.value;
- }
-
- public boolean hasExpired() {
- return this.hasExpired(System.currentTimeMillis());
- }
-
- public boolean hasExpired(long var1) {
- return var1 > this.expireTime;
- }
- }
-