18#ifndef _DECAF_UTIL_MAP_H_
19#define _DECAF_UTIL_MAP_H_
87 template <
typename K,
typename V>
176 virtual V&
get(
const K& key) = 0;
190 virtual const V&
get(
const K& key)
const = 0;
210 virtual bool put(
const K& key,
const V& value) = 0;
237 virtual bool put(
const K& key,
const V& value, V& oldValue) = 0;
The root interface in the collection hierarchy.
Definition Collection.h:69
virtual Collection< V > & values()=0
Returns a Collection view of the values contained in this map.
Map()
Default constructor - does nothing.
Definition Map.h:94
virtual void clear()=0
Removes all of the mappings from this map (optional operation).
virtual const Set< MapEntry< K, V > > & entrySet() const =0
virtual V & get(const K &key)=0
Gets the value mapped to the specified key in the Map.
virtual Set< K > & keySet()=0
Returns a Set view of the keys contained in this map.
virtual ~Map()
Definition Map.h:96
virtual bool isEmpty() const =0
virtual bool equals(const Map &source) const =0
Compares the specified object with this map for equality.
virtual bool containsKey(const K &key) const =0
Returns true if this map contains a mapping for the specified key.
virtual bool put(const K &key, const V &value, V &oldValue)=0
Associates the specified value with the specified key in this map (optional operation).
virtual int size() const =0
virtual Set< MapEntry< K, V > > & entrySet()=0
Returns a Set view of the mappings contained in this map.
virtual const V & get(const K &key) const =0
Gets the value mapped to the specified key in the Map.
virtual bool containsValue(const V &value) const =0
Returns true if this map maps one or more keys to the specified value.
virtual void copy(const Map &source)=0
Copies the content of the source map into this map.
virtual void putAll(const Map< K, V > &other)=0
Copies all of the mappings from the specified map to this map (optional operation).
virtual const Set< K > & keySet() const =0
virtual const Collection< V > & values() const =0
virtual bool put(const K &key, const V &value)=0
Associates the specified value with the specified key in this map (optional operation).
virtual V remove(const K &key)=0
Removes the value (key/value pair) for the specified key from the map, returns a copy of the value th...
A collection that contains no duplicate elements.
Definition Set.h:45
The interface for all synchronizable objects (that is, objects that can be locked and unlocked).
Definition Synchronizable.h:37
Definition AbstractExecutorService.h:28
Definition AbstractCollection.h:33
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition AprPool.h:25