Returns a boolean specifying whether or not the element corresponding to the key has expired. Only returns true if element is in cache and has expired. Error conditions return false, if no expireTable entry, returns true. Always returns false if expireTime <= 0. Also, if SoftReference in the CacheLi
(Object key)
| 442 | * expired, otherwise false |
| 443 | */ |
| 444 | public boolean hasExpired(Object key) { |
| 445 | if (key == null) |
| 446 | return false; |
| 447 | |
| 448 | CacheLine line = (CacheLine) cacheLineTable.get(key); |
| 449 | |
| 450 | return hasExpired(line); |
| 451 | } |
| 452 | |
| 453 | protected boolean hasExpired(CacheLine line) { |
| 454 | if (line == null) |
no test coverage detected