public class StoredEntrySet<K,V> extends StoredCollection<java.util.Map.Entry<K,V>> implements java.util.Set<java.util.Map.Entry<K,V>>
Map.entrySet() this class
does support the add(java.util.Map.Entry<K, V>) and StoredCollection.addAll(java.util.Collection<? extends E>) methods.
The Map.Entry.setValue(V) method of the Map.Entry objects
that are returned by this class and its iterators behaves just as the StoredIterator.set(E) method does.
DEFAULT_ITERATOR_BLOCK_SIZEview| Constructor and Description |
|---|
StoredEntrySet(DataView mapView) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(java.util.Map.Entry<K,V> mapEntry)
Adds the specified element to this set if it is not already present
(optional operation).
|
boolean |
contains(java.lang.Object mapEntry)
Returns true if this set contains the specified element.
|
(package private) boolean |
hasValues() |
(package private) java.util.Map.Entry<K,V> |
makeIteratorData(BaseIterator iterator,
DatabaseEntry keyEntry,
DatabaseEntry priKeyEntry,
DatabaseEntry valueEntry) |
boolean |
remove(java.lang.Object mapEntry)
Removes the specified element from this set if it is present (optional
operation).
|
java.lang.String |
toString()
Converts the collection to a string representation for debugging.
|
add, addAll, blockIterator, checkIterAddAllowed, containsAll, equals, getFirstOrLast, getIndexOffset, getIteratorBlockSize, hashCode, iterateDuplicates, iterator, iterator, join, makeIteratorData, removeAll, retainAll, setIteratorBlockSize, size, storedIterator, storedIterator, toArray, toArray, toListareDuplicatesAllowed, areDuplicatesOrdered, areKeyRangesAllowed, areKeysRenumbered, beginAutoCommit, clear, closeCursor, commitAutoCommit, configuredClone, containsKey, containsValue, convertException, getCursorConfig, getValue, handleException, initAfterClone, isEmpty, isOrdered, isSecondary, isTransactional, isWriteAllowed, putKeyValue, removeKey, removeValue, storedOrExternalIteratorStoredEntrySet(DataView mapView)
public boolean add(java.util.Map.Entry<K,V> mapEntry)
Set.add(E) interface.add in interface java.util.Collection<java.util.Map.Entry<K,V>>add in interface java.util.Set<java.util.Map.Entry<K,V>>mapEntry - must be a Map.Entry instance.OperationFailureException - if one of the Write
Operation Failures occurs.EnvironmentFailureException - if an unexpected, internal or
environment-wide failure occurs.
java.lang.UnsupportedOperationException - if the collection is read-only.java.lang.ClassCastException - if the mapEntry is not a Map.Entry instance.RuntimeExceptionWrapper - if a checked exception is thrown,
including a DatabaseException on BDB (C edition).public boolean remove(java.lang.Object mapEntry)
Set.remove(java.lang.Object) interface.remove in interface java.util.Collection<java.util.Map.Entry<K,V>>remove in interface java.util.Set<java.util.Map.Entry<K,V>>mapEntry - is a Map.Entry instance to be removed.Map.Entry instance or is not
present in the set.
OperationFailureException - if one of the Write
Operation Failures occurs.EnvironmentFailureException - if an unexpected, internal or
environment-wide failure occurs.
java.lang.UnsupportedOperationException - if the collection is read-only.RuntimeExceptionWrapper - if a checked exception is thrown,
including a DatabaseException on BDB (C edition).public boolean contains(java.lang.Object mapEntry)
Set.contains(java.lang.Object) interface.contains in interface java.util.Collection<java.util.Map.Entry<K,V>>contains in interface java.util.Set<java.util.Map.Entry<K,V>>mapEntry - is a Map.Entry instance to be checked.Map.Entry instance or is not
present in the set.
OperationFailureException - if one of the Read Operation
Failures occurs.EnvironmentFailureException - if an unexpected, internal or
environment-wide failure occurs.
RuntimeExceptionWrapper - if a checked exception is thrown,
including a DatabaseException on BDB (C edition).public java.lang.String toString()
StoredCollectiontoString in class StoredCollection<java.util.Map.Entry<K,V>>java.util.Map.Entry<K,V> makeIteratorData(BaseIterator iterator, DatabaseEntry keyEntry, DatabaseEntry priKeyEntry, DatabaseEntry valueEntry)
makeIteratorData in class StoredCollection<java.util.Map.Entry<K,V>>boolean hasValues()
hasValues in class StoredCollection<java.util.Map.Entry<K,V>>Copyright (c) 2004-2012 Oracle. All rights reserved.