/** * Accessor for the set of entries in the Map. * * @return Set of entries */ public synchronized java.util.Set entrySet() { if (useCache) { loadFromStore(); } else if (backingStore != null) { return new Set(ownerOP, ownerMmd, false, backingStore.entrySetStore()); } return delegate.entrySet(); }
/** * Method to return the size of the Map. * * @return The size */ public synchronized int size() { if (useCache && isCacheLoaded) { // If the "delegate" is already loaded, use it return delegate.size(); } else if (backingStore != null) { return backingStore.entrySetStore().size(ownerOP); } return delegate.size(); }