public class StoredEntrySet<K,V> extends StoredCollection<Map.Entry<K,V>> implements Set<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_SIZE
Modifier and Type | Method and Description |
---|---|
boolean |
add(Map.Entry<K,V> mapEntry)
Adds the specified element to this set if it is not already present
(optional operation).
|
boolean |
contains(Object mapEntry)
Returns true if this set contains the specified element.
|
boolean |
remove(Object mapEntry)
Removes the specified element from this set if it is present (optional
operation).
|
String |
toString()
Converts the collection to a string representation for debugging.
|
addAll, containsAll, equals, getIteratorBlockSize, hashCode, iterator, iterator, join, removeAll, retainAll, setIteratorBlockSize, size, storedIterator, storedIterator, toArray, toArray, toList
areDuplicatesAllowed, areDuplicatesOrdered, areKeyRangesAllowed, areKeysRenumbered, clear, getCursorConfig, isEmpty, isOrdered, isSecondary, isTransactional, isWriteAllowed
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, clear, containsAll, equals, hashCode, isEmpty, iterator, removeAll, retainAll, size, spliterator, toArray, toArray
parallelStream, removeIf, stream
public boolean add(Map.Entry<K,V> mapEntry)
Set.add(E)
interface.add
in interface Collection<Map.Entry<K,V>>
add
in interface Set<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.
UnsupportedOperationException
- if the collection is read-only.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(Object mapEntry)
Set.remove(java.lang.Object)
interface.remove
in interface Collection<Map.Entry<K,V>>
remove
in interface Set<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.
UnsupportedOperationException
- if the collection is read-only.RuntimeExceptionWrapper
- if a checked exception is thrown,
including a DatabaseException
on BDB (C edition).public boolean contains(Object mapEntry)
Set.contains(java.lang.Object)
interface.contains
in interface Collection<Map.Entry<K,V>>
contains
in interface Set<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 String toString()
StoredCollection
toString
in class StoredCollection<Map.Entry<K,V>>
Copyright (c) 2002, 2015 Oracle and/or its affiliates. All rights reserved.