Inheritance diagram for com::sleepycat::collections::StoredCollection:
Public Member Functions | |
Iterator | iterator () |
StoredIterator | iterator (boolean writeAllowed) |
Object[] | toArray () |
Object[] | toArray (Object[] a) |
boolean | containsAll (Collection coll) |
boolean | addAll (Collection coll) |
boolean | removeAll (Collection coll) |
boolean | retainAll (Collection coll) |
boolean | equals (Object other) |
List | toList () |
String | toString () |
StoredIterator | join (StoredContainer[] indices, Object[] indexKeys, JoinConfig joinConfig) |
Note that this class does not conform to the standard Java collections interface in the following ways:
UnsupportedOperationException
because, for performance reasons, databases do not maintain their total record count. In addition, this class provides the following methods for stored collections only. Note that the use of these methods is not compatible with the standard Java collections interface.
Definition at line 51 of file StoredCollection.java.
|
Adds all of the elements in the specified collection to this collection (optional operation). This method calls the add(Object) method of the concrete collection class, which may or may not be supported. This method conforms to the Collection#addAll interface.
Definition at line 211 of file StoredCollection.java. |
|
Returns true if this collection contains all of the elements in the specified collection. This method conforms to the Collection#containsAll interface.
Definition at line 183 of file StoredCollection.java. |
|
Compares the specified object with this collection for equality. A value comparison is performed by this method and the stored values are compared rather than calling the equals() method of each element. This method conforms to the Collection#equals interface.
Reimplemented in com::sleepycat::collections::StoredList. Definition at line 291 of file StoredCollection.java. References iterator(). |
|
Returns a read or read-write iterator over the elements in this collection. This method does not exist in the standard Collection interface.
Definition at line 112 of file StoredCollection.java. References com::sleepycat::collections::StoredContainer::isWriteAllowed(). |
|
Returns an iterator over the elements in this collection. The iterator will be read-only if the collection is read-only. This method conforms to the Collection#iterator interface.
Definition at line 88 of file StoredCollection.java. References com::sleepycat::collections::StoredContainer::isWriteAllowed(). Referenced by equals(), com::sleepycat::collections::StoredList::listIterator(), toArray(), toList(), com::sleepycat::collections::StoredEntrySet::toString(), and toString(). |
|
Returns an iterator representing an equality join of the indices and index key values specified. This method does not exist in the standard Collection interface. The returned iterator supports only the two methods: hasNext() and next(). All other methods will throw UnsupportedOperationException.
Definition at line 392 of file StoredCollection.java. References com::sleepycat::collections::DataView::join(). |
|
Removes all this collection's elements that are also contained in the specified collection (optional operation). This method conforms to the Collection#removeAll interface.
Definition at line 241 of file StoredCollection.java. Referenced by retainAll(). |
|
Retains only the elements in this collection that are contained in the specified collection (optional operation). This method conforms to the Collection#removeAll interface.
Definition at line 256 of file StoredCollection.java. References removeAll(). |
|
Returns an array of all the elements in this collection whose runtime type is that of the specified array. This method conforms to the Collection#toArray(Object[]) interface.
Definition at line 152 of file StoredCollection.java. References iterator(). |
|
Returns an array of all the elements in this collection. This method conforms to the Collection#toArray() interface.
Definition at line 129 of file StoredCollection.java. References iterator(). |
|
Returns a copy of this collection as an ArrayList. This is the same as toArray() but returns a collection instead of an array.
Definition at line 329 of file StoredCollection.java. References iterator(). |
|
Converts the collection to a string representation for debugging. WARNING: The returned string may be very large.
Reimplemented in com::sleepycat::collections::StoredEntrySet. Definition at line 350 of file StoredCollection.java. References iterator(). |