@Override public List getKeys() { return Collections.unmodifiableList(new SetAsList(new RealObjectKeySet(this.valueModeHandler, backend.keySet()))); }
/** * Does not support List methods {@link UnsupportedOperationException}. * * @param index Index */ public E get(int index) { if (this.array == null) { this.array = toArray(); } if (array.length <= index) { throw new IndexOutOfBoundsException(); } return (E) this.array[index]; }
/** * {@inheritDoc} */ public List getKeys() { LOG.debug("cache {} getKeys", cache.getName()); XATransactionContext context = getOrCreateTransactionContext(); Set<Object> keys = new LargeSet<Object>() { @Override public int sourceSize() { return underlyingStore.getSize(); } @Override public Iterator<Object> sourceIterator() { return underlyingStore.getKeys().iterator(); } }; keys.addAll(context.getAddedKeys()); keys.removeAll(context.getRemovedKeys()); return new SetAsList<Object>(keys); }
/** * Does not support List methods {@link UnsupportedOperationException}. * * @param index Index */ public E get(int index) { if (this.array == null) { this.array = toArray(); } if (array.length <= index) { throw new IndexOutOfBoundsException(); } return (E) this.array[index]; }
/** * {@inheritDoc} */ public List getKeys() { assertNotTimedOut(); Set<Object> keys = new LargeSet<Object>() { @Override public int sourceSize() { return underlyingStore.getSize(); } @Override public Iterator<Object> sourceIterator() { @SuppressWarnings("unchecked") Iterator<Object> iterator = underlyingStore.getKeys().iterator(); return iterator; } }; keys.removeAll(softLockManager.getKeysInvisibleInContext(getCurrentTransactionContext(), underlyingStore)); return new SetAsList<Object>(keys); }
/** * Does not support List methods {@link UnsupportedOperationException}. * * @param index Index */ public E get(int index) { if (this.array == null) { this.array = toArray(); } if (array.length <= index) { throw new IndexOutOfBoundsException(); } return (E) this.array[index]; }
/** * {@inheritDoc} */ public List getKeys() { LOG.debug("cache {} getKeys", cache.getName()); XATransactionContext context = getOrCreateTransactionContext(); Set<Object> keys = new LargeSet<Object>() { @Override public int sourceSize() { return underlyingStore.getSize(); } @Override public Iterator<Object> sourceIterator() { return underlyingStore.getKeys().iterator(); } }; keys.addAll(context.getAddedKeys()); keys.removeAll(context.getRemovedKeys()); return new SetAsList<Object>(keys); }
/** * Does not support List methods {@link UnsupportedOperationException}. * * @param index Index */ public E get(int index) { if (this.array == null) { this.array = toArray(); } if (array.length <= index) { throw new IndexOutOfBoundsException(); } return (E) this.array[index]; }
/** * {@inheritDoc} */ public List getKeys() { LOG.debug("cache {} getKeys", cache.getName()); XATransactionContext context = getOrCreateTransactionContext(); Set<Object> keys = new LargeSet<Object>() { @Override public int sourceSize() { return underlyingStore.getSize(); } @Override public Iterator<Object> sourceIterator() { return underlyingStore.getKeys().iterator(); } }; keys.addAll(context.getAddedKeys()); keys.removeAll(context.getRemovedKeys()); return new SetAsList<Object>(keys); }
/** * {@inheritDoc} */ public List getKeys() { LOG.debug("cache {} getKeys", cache.getName()); XATransactionContext context = getOrCreateTransactionContext(); Set<Object> keys = new LargeSet<Object>() { @Override public int sourceSize() { return underlyingStore.getSize(); } @Override public Iterator<Object> sourceIterator() { return underlyingStore.getKeys().iterator(); } }; keys.addAll(context.getAddedKeys()); keys.removeAll(context.getRemovedKeys()); return new SetAsList<Object>(keys); }
/** * {@inheritDoc} */ public List getKeys() { assertNotTimedOut(); Set<Object> keys = new LargeSet<Object>() { @Override public int sourceSize() { return underlyingStore.getSize(); } @Override public Iterator<Object> sourceIterator() { @SuppressWarnings("unchecked") Iterator<Object> iterator = underlyingStore.getKeys().iterator(); return iterator; } }; keys.removeAll(softLockManager.getKeysInvisibleInContext(getCurrentTransactionContext(), underlyingStore)); return new SetAsList<Object>(keys); }
/** * {@inheritDoc} */ public List getKeys() { assertNotTimedOut(); Set<Object> keys = new LargeSet<Object>() { @Override public int sourceSize() { return underlyingStore.getSize(); } @Override public Iterator<Object> sourceIterator() { @SuppressWarnings("unchecked") Iterator<Object> iterator = underlyingStore.getKeys().iterator(); return iterator; } }; keys.removeAll(softLockManager.getKeysInvisibleInContext(getCurrentTransactionContext(), underlyingStore)); return new SetAsList<Object>(keys); }
/** * {@inheritDoc} */ public List getKeys() { assertNotTimedOut(); Set<Object> keys = new LargeSet<Object>() { @Override public int sourceSize() { return underlyingStore.getSize(); } @Override public Iterator<Object> sourceIterator() { @SuppressWarnings("unchecked") Iterator<Object> iterator = underlyingStore.getKeys().iterator(); return iterator; } }; keys.removeAll(softLockManager.getKeysInvisibleInContext(getCurrentTransactionContext(), underlyingStore)); return new SetAsList<Object>(keys); }
/** * {@inheritDoc} */ public List<?> getKeys() { readLock(); try { if (cache.isTierPinned() && !authority.isPersistent()) { return cache.getKeys(); } else { return new SetAsList<Object>( new CacheKeySet<Object>( authority.getKeys(), cache.isTierPinned() ? cache.getKeys() : cache.getPresentPinnedKeys())); } } finally { readUnlock(); } }