#include <src/main/decaf/util/HashMap.h>

Public Member Functions | |
| ConstHashMapEntrySet (const HashMap *parent) | |
| virtual | ~ConstHashMapEntrySet () |
| virtual int | size () const |
| Returns the number of elements in this collection. | |
| virtual void | clear () |
| Removes all of the elements from this collection (optional operation). | |
| virtual bool | remove (const MapEntry< K, V > &entry DECAF_UNUSED) |
| virtual bool | contains (const MapEntry< K, V > &entry) |
| virtual Iterator< MapEntry< K, V > > * | iterator () |
| virtual Iterator< MapEntry< K, V > > * | iterator () const |
| decaf::util::HashMap< K, V, HASHCODE >::ConstHashMapEntrySet::ConstHashMapEntrySet | ( | const HashMap * | parent | ) | [inline] |
| virtual decaf::util::HashMap< K, V, HASHCODE >::ConstHashMapEntrySet::~ConstHashMapEntrySet | ( | ) | [inline, virtual] |
| virtual void decaf::util::HashMap< K, V, HASHCODE >::ConstHashMapEntrySet::clear | ( | ) | [inline, virtual] |
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.
| UnsupportedOperationException | if the clear operation is not supported by this collection |
Reimplemented from decaf::util::AbstractCollection< MapEntry< K, V > >.
| virtual bool decaf::util::HashMap< K, V, HASHCODE >::ConstHashMapEntrySet::contains | ( | const MapEntry< K, V > & | entry | ) | [inline, virtual] |
| virtual Iterator< MapEntry<K, V> >* decaf::util::HashMap< K, V, HASHCODE >::ConstHashMapEntrySet::iterator | ( | ) | const [inline, virtual] |
Implements decaf::lang::Iterable< MapEntry< K, V > >.
| virtual Iterator< MapEntry<K, V> >* decaf::util::HashMap< K, V, HASHCODE >::ConstHashMapEntrySet::iterator | ( | ) | [inline, virtual] |
Implements decaf::lang::Iterable< MapEntry< K, V > >.
| virtual bool decaf::util::HashMap< K, V, HASHCODE >::ConstHashMapEntrySet::remove | ( | const MapEntry< K, V > &entry | DECAF_UNUSED | ) | [inline, virtual] |
| virtual int decaf::util::HashMap< K, V, HASHCODE >::ConstHashMapEntrySet::size | ( | ) | const [inline, virtual] |
Returns the number of elements in this collection.
If this collection contains more than Integer::MAX_VALUE elements, returns Integer::MAX_VALUE.
Implements decaf::util::Collection< MapEntry< K, V > >.
References decaf::util::HashMap< K, V, HASHCODE >::elementCount.
1.6.1