com.senn.magic.collections
Interface ChainableMap<K,V>

All Superinterfaces:
Map<K,V>
All Known Implementing Classes:
ChainableHashMap, ChainableLinkedHashMap, ChainableTreeMap

public interface ChainableMap<K,V>
extends Map<K,V>

Map sub interface that makes it possible to 'chain' actions

Since:
3.5
Author:
Bart Thierens
Last modification: 23/01/2011

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Method Summary
 ChainableMap<K,V> add(K key, V value)
           
 ChainableMap<K,V> addAll(Map<? extends K,? extends V> m)
           
 void clear()
          Deprecated. 
 ChainableMap<K,V> delete(Object key)
           
 ChainableMap<K,V> empty()
           
 V put(K key, V value)
          Deprecated. 
 void putAll(Map<? extends K,? extends V> m)
          Deprecated. 
 V remove(Object key)
          Deprecated. 
 
Methods inherited from interface java.util.Map
containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, size, values
 

Method Detail

add

ChainableMap<K,V> add(K key,
                      V value)
Parameters:
key -
value -
Returns:
See Also:
Map.put(Object, Object)

addAll

ChainableMap<K,V> addAll(Map<? extends K,? extends V> m)
Parameters:
m -
Returns:
See Also:
Map.putAll(Map)

empty

ChainableMap<K,V> empty()
Returns:
See Also:
Map.clear()

delete

ChainableMap<K,V> delete(Object key)
Parameters:
key -
Returns:
See Also:
Map.remove(Object)

clear

@Deprecated
void clear()
Deprecated. 

Specified by:
clear in interface Map<K,V>
See Also:
empty()

put

@Deprecated
V put(K key,
                 V value)
Deprecated. 

Specified by:
put in interface Map<K,V>
See Also:
add(Object, Object)

putAll

@Deprecated
void putAll(Map<? extends K,? extends V> m)
Deprecated. 

Specified by:
putAll in interface Map<K,V>
See Also:
addAll(Map)

remove

@Deprecated
V remove(Object key)
Deprecated. 

Specified by:
remove in interface Map<K,V>
See Also:
delete(Object)