|
Berkeley DB Java Edition version 1.5.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sleepycat.collections.StoredContainer | +--com.sleepycat.collections.StoredCollection | +--com.sleepycat.collections.StoredEntrySet
The Set returned by Map.entrySet(). This class may not be instantiated
directly. Contrary to what is stated by Map.entrySet()
this class
does support the add(java.lang.Object)
and StoredCollection.addAll(java.util.Collection)
methods.
The Map.Entry.setValue(java.lang.Object)
method of the Map.Entry objects
that are returned by this class and its iterators behaves just as the StoredIterator.set(java.lang.Object)
method does.
Note that this class does not conform to the standard Java collections interface in the following ways:
StoredContainer.size()
method always throws
UnsupportedOperationException
because, for performance reasons,
databases do not maintain their total record count.StoredIterator.close()
or StoredIterator.close(java.util.Iterator)
to release the underlying database cursor resources.
Method Summary | |
boolean |
add(Object 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. |
Methods inherited from class com.sleepycat.collections.StoredCollection |
addAll, containsAll, equals, iterator, iterator, join, removeAll, retainAll, toArray, toArray, toList |
Methods inherited from class com.sleepycat.collections.StoredContainer |
areDuplicatesAllowed, areDuplicatesOrdered, areKeysRenumbered, clear, isDirtyRead, isDirtyReadAllowed, isEmpty, isOrdered, isSecondary, isTransactional, isWriteAllowed, size |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Set |
addAll, clear, containsAll, equals, hashCode, isEmpty, iterator, removeAll, retainAll, size, toArray, toArray |
Method Detail |
public boolean add(Object mapEntry)
Set.add(java.lang.Object)
interface.
add
in interface Set
mapEntry
- must be a Map.Entry
instance.
UnsupportedOperationException
- if the collection is read-only.
ClassCastException
- if the mapEntry is not a Map.Entry
instance.
RuntimeExceptionWrapper
- if a DatabaseException
is thrown.public boolean remove(Object mapEntry)
Set.remove(java.lang.Object)
interface.
remove
in interface Set
mapEntry
- is a Map.Entry
instance to be removed.
Map.Entry
instance or is not
present in the set.
UnsupportedOperationException
- if the collection is read-only.
RuntimeExceptionWrapper
- if a DatabaseException
is thrown.public boolean contains(Object mapEntry)
Set.contains(java.lang.Object)
interface.
contains
in interface Set
mapEntry
- is a Map.Entry
instance to be checked.
Map.Entry
instance or is not
present in the set.
RuntimeExceptionWrapper
- if a DatabaseException
is thrown.public String toString()
StoredCollection
toString
in class StoredCollection
|
Berkeley DB Java Edition version 1.5.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |