com.sleepycat.collections
public class StoredKeySet extends StoredCollection implements Set
Constructor Summary | |
---|---|
StoredKeySet(Database database, EntryBinding keyBinding, boolean writeAllowed)
Creates a key set view of a Database.
|
Method Summary | |
---|---|
boolean | add(Object key)
Adds the specified key to this set if it is not already present
(optional operation).
|
boolean | contains(Object key)
Returns true if this set contains the specified key.
|
boolean | remove(Object key)
Removes the specified key from this set if it is present (optional
operation).
|
Parameters: database is the Database underlying the new collection. keyBinding is the binding used to translate between key buffers and key objects. writeAllowed is true to create a read-write collection or false to create a read-only collection.
Throws: IllegalArgumentException if formats are not consistently defined or a parameter is invalid. RuntimeExceptionWrapper if a DatabaseException is thrown.
Throws: UnsupportedOperationException if the collection is indexed, or if the collection is read-only. RuntimeExceptionWrapper if a DatabaseException is thrown.
Throws: RuntimeExceptionWrapper if a DatabaseException is thrown.
Throws: UnsupportedOperationException if the collection is read-only. RuntimeExceptionWrapper if a DatabaseException is thrown.