@Override public boolean contains(final K key) { return get(key) != null; }
@Override public E get(K key) { final E entry = super.get(key); if (entry != null) { if (accessExpirationPeriod > 0) { // update expiration time final Entry existing = (Entry)entry; Preconditions.checkState(queue.remove(existing)); setExpirationTime(existing, accessExpirationPeriod); queue.offer(existing); } } return entry; }
lock.lock(); try { mapEntry = set.get(newEntry);
@Override public boolean contains(final K key) { return get(key) != null; }
@Override public boolean contains(final K key) { return get(key) != null; }
@Override public boolean contains(final K key) { return get(key) != null; }
@Override public boolean contains(final K key) { return get(key) != null; }
@Override public E get(K key) { final E entry = super.get(key); if (entry != null) { if (accessExpirationPeriod > 0) { // update expiration time final Entry existing = (Entry)entry; Preconditions.checkState(queue.remove(existing)); setExpirationTime(existing, accessExpirationPeriod); queue.offer(existing); } } return entry; }
@Override public E get(K key) { final E entry = super.get(key); if (entry != null) { if (accessExpirationPeriod > 0) { // update expiration time final Entry existing = (Entry)entry; Preconditions.checkState(queue.remove(existing)); setExpirationTime(existing, accessExpirationPeriod); queue.offer(existing); } } return entry; }
@Override public E get(K key) { final E entry = super.get(key); if (entry != null) { if (accessExpirationPeriod > 0) { // update expiration time final Entry existing = (Entry)entry; Preconditions.checkState(queue.remove(existing)); setExpirationTime(existing, accessExpirationPeriod); queue.offer(existing); } } return entry; }
@Override public E get(K key) { final E entry = super.get(key); if (entry != null) { if (accessExpirationPeriod > 0) { // update expiration time final Entry existing = (Entry)entry; Preconditions.checkState(queue.remove(existing)); setExpirationTime(existing, accessExpirationPeriod); queue.offer(existing); } } return entry; }
lock.lock(); try { mapEntry = set.get(newEntry);
lock.lock(); try { mapEntry = (CacheEntry) set.get(newEntry);
lock.lock(); try { mapEntry = set.get(newEntry);
lock.lock(); try { mapEntry = set.get(newEntry);
lock.lock(); try { mapEntry = set.get(newEntry);
try { gset.get(null); Assert.fail(); } catch(NullPointerException e) {
try { gset.get(null); Assert.fail(); } catch(NullPointerException e) {