#include <coherence/util/TypedCollections.hpp>
Inherits WrapperCollections::AbstractWrapperEntry.
Both key and value objects are typed. The types of key and value may differ.
Public Types | |
| typedef spec::Handle | Handle |
| TypedEntry<K, V> Handle definition. | |
| typedef spec::View | View |
| TypedEntry<K, V> View definition. | |
| typedef spec::Holder | Holder |
| TypedEntry<K, V> Holder definition. | |
| typedef K | KeyType |
| The type of the keys, e.g. | |
| typedef V | ValueType |
| The type the values, e.g. | |
Public Member Functions | |
| virtual KeyType | getKeyTyped () const |
| The typed version of the method Map::Entry::getKey. | |
| virtual ValueType | getValueTyped () const |
| The typed version of the method Map::Entry::getKey. | |
| virtual ValueType | getValueTyped () |
| The typed version of the method Map::Entry::getKey. | |
| virtual ValueType | setValue (ValueType ohValue) |
| Update the value of the map entry. | |
Protected Member Functions | |
| TypedEntry (Map::Entry::Holder ohEntryDelegate) | |
| Create a new TypedEntry over the given Map::Entry. | |
| TypedEntry (const TypedEntry &that) | |
| Copy constructor. | |
| typedef K KeyType |
The type of the keys, e.g.
| typedef V ValueType |
The type the values, e.g.
| TypedEntry | ( | Map::Entry::Holder | ohEntryDelegate | ) | [inline, protected] |
Create a new TypedEntry over the given Map::Entry.
| ohEntryDelegate | the Entry to delegate to |
| virtual KeyType getKeyTyped | ( | ) | const [inline, virtual] |
The typed version of the method Map::Entry::getKey.
Return the key corresponding to this entry.
| ClassCastException | if the typed entry is broken by external usage |
| virtual ValueType getValueTyped | ( | ) | const [inline, virtual] |
The typed version of the method Map::Entry::getKey.
Return the value corresponding to this entry.
| ClassCastException | if the typed entry is broken by external usage |
| virtual ValueType getValueTyped | ( | ) | [inline, virtual] |
The typed version of the method Map::Entry::getKey.
Return the value corresponding to this entry.
| ClassCastException | if the typed entry is broken by external usage |
Update the value of the map entry.
| ohValue | the new value for the entry |