|
| | ConstHashMapValueCollection (const HashMap *parent) |
| |
| virtual | ~ConstHashMapValueCollection () |
| |
| virtual bool | contains (const V &value) const |
| | This implementation iterates over the elements in the collection, checking each element in turn for equality with the specified element. More...
|
| |
| virtual int | size () const |
| | Returns the number of elements in this collection. More...
|
| |
| virtual void | clear () |
| | Removes all of the elements from this collection (optional operation). More...
|
| |
| virtual Iterator< V > * | iterator () |
| |
| virtual Iterator< V > * | iterator () const |
| |
| | AbstractCollection () |
| |
| | AbstractCollection (const AbstractCollection &other) |
| | Copy Constructor, copy element from the source collection to this collection after clearing any element stored in this collection. More...
|
| |
| virtual | ~AbstractCollection () |
| |
| AbstractCollection< V > & | operator= (const AbstractCollection< V > &collection) |
| | Assignment Operator, copy element from the source collection to this collection after clearing any element stored in this collection. More...
|
| |
| virtual bool | containsAll (const Collection< V > &collection) const |
| |
| virtual bool | equals (const Collection< V > &collection) const |
| | Answers true if this Collection and the one given are the same size and if each element contained in the Collection given is equal to an element contained in this collection. More...
|
| |
| virtual void | copy (const Collection< V > &collection) |
| | Renders this Collection as a Copy of the given Collection. More...
|
| |
| virtual bool | isEmpty () const |
| | Returns true if this collection contains no elements. More...
|
| |
| virtual bool | add (const V &value DECAF_UNUSED) |
| |
| virtual bool | addAll (const Collection< V > &collection) |
| |
| virtual bool | remove (const V &value) |
| |
| virtual bool | removeAll (const Collection< V > &collection) |
| |
| virtual bool | retainAll (const Collection< V > &collection) |
| |
| virtual std::vector< V > | toArray () const |
| | Answers an STL vector containing copies of all elements contained in this Collection. More...
|
| |
| virtual void | lock () |
| | Locks the object. More...
|
| |
| virtual bool | tryLock () |
| | Attempts to Lock the object, if the lock is already held by another thread than this method returns false. More...
|
| |
| virtual void | unlock () |
| | Unlocks the object. More...
|
| |
| virtual void | wait () |
| | Waits on a signal from this object, which is generated by a call to Notify. More...
|
| |
| virtual void | wait (long long millisecs) |
| | Waits on a signal from this object, which is generated by a call to Notify. More...
|
| |
| virtual void | wait (long long millisecs, int nanos) |
| | Waits on a signal from this object, which is generated by a call to Notify. More...
|
| |
| virtual void | notify () |
| | Signals a waiter on this object that it can now wake up and continue. More...
|
| |
| virtual void | notifyAll () |
| | Signals the waiters on this object that it can now wake up and continue. More...
|
| |
| virtual | ~Collection () |
| |
| virtual void | copy (const Collection< E > &collection)=0 |
| | Renders this Collection as a Copy of the given Collection. More...
|
| |
| virtual bool | add (const E &value)=0 |
| | Returns true if this collection changed as a result of the call. More...
|
| |
| virtual bool | addAll (const Collection< E > &collection)=0 |
| | Adds all of the elements in the specified collection to this collection. More...
|
| |
| virtual bool | contains (const E &value) const =0 |
| | Returns true if this collection contains the specified element. More...
|
| |
| virtual bool | containsAll (const Collection< E > &collection) const =0 |
| | Returns true if this collection contains all of the elements in the specified collection. More...
|
| |
| virtual bool | equals (const Collection< E > &value) const =0 |
| | Compares the passed collection to this one, if they contain the same elements, i.e. More...
|
| |
| virtual bool | remove (const E &value)=0 |
| | Removes a single instance of the specified element from the collection. More...
|
| |
| virtual bool | removeAll (const Collection< E > &collection)=0 |
| | Removes all this collection's elements that are also contained in the specified collection (optional operation). More...
|
| |
| virtual bool | retainAll (const Collection< E > &collection)=0 |
| | Retains only the elements in this collection that are contained in the specified collection (optional operation). More...
|
| |
| virtual | ~Iterable () |
| |
| virtual | ~Synchronizable () |
| |
template<typename K , typename V , typename HASHCODE = HashCode<K>>
Removes all of the elements from this collection (optional operation).
The collection will be empty after this method returns.
This implementation iterates over this collection, removing each element using the Iterator.remove operation. Most implementations will probably choose to override this method for efficiency.
Note that this implementation will throw an UnsupportedOperationException if the iterator returned by this collection's iterator method does not implement the remove method and this collection is non-empty.
- Exceptions
-
| UnsupportedOperationException | if the clear operation is not supported by this collection |
Reimplemented from decaf::util::AbstractCollection< V >.
template<typename K , typename V , typename HASHCODE = HashCode<K>>
template<typename K , typename V , typename HASHCODE = HashCode<K>>