backtype.storm.utils
Class IndifferentAccessMap

java.lang.Object
  extended by AFn
      extended by backtype.storm.utils.IndifferentAccessMap
All Implemented Interfaces:
java.util.Map
Direct Known Subclasses:
TupleImpl

public class IndifferentAccessMap
extends AFn
implements java.util.Map


Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Field Summary
protected  IPersistentMap _map
           
 
Constructor Summary
protected IndifferentAccessMap()
           
  IndifferentAccessMap(IPersistentMap map)
           
 
Method Summary
 IPersistentMap assoc(java.lang.Object k, java.lang.Object v)
           
 IPersistentMap assocEx(java.lang.Object k, java.lang.Object v)
           
 void clear()
           
 IPersistentCollection cons(java.lang.Object o)
           
 boolean containsKey(java.lang.Object k)
           
 boolean containsValue(java.lang.Object v)
           
 int count()
           
 IPersistentCollection empty()
           
 IMapEntry entryAt(java.lang.Object k)
           
 java.util.Set entrySet()
           
 boolean equiv(java.lang.Object o)
           
 java.lang.Object get(java.lang.Object k)
           
 IPersistentMap getMap()
           
 java.lang.Object invoke(java.lang.Object o)
           
 java.lang.Object invoke(java.lang.Object o, java.lang.Object notfound)
           
 boolean isEmpty()
           
 java.util.Iterator iterator()
           
 java.util.Set keySet()
           
 java.lang.Object put(java.lang.Object k, java.lang.Object v)
           
 void putAll(java.util.Map m)
           
 java.lang.Object remove(java.lang.Object k)
           
 ISeq seq()
           
 IPersistentMap setMap(IPersistentMap map)
           
 int size()
           
 java.lang.Object valAt(java.lang.Object o)
           
 java.lang.Object valAt(java.lang.Object o, java.lang.Object def)
           
 java.util.Collection values()
           
 IPersistentMap without(java.lang.Object k)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Field Detail

_map

protected IPersistentMap _map
Constructor Detail

IndifferentAccessMap

protected IndifferentAccessMap()

IndifferentAccessMap

public IndifferentAccessMap(IPersistentMap map)
Method Detail

getMap

public IPersistentMap getMap()

setMap

public IPersistentMap setMap(IPersistentMap map)

size

public int size()
Specified by:
size in interface java.util.Map

count

public int count()

seq

public ISeq seq()

valAt

public java.lang.Object valAt(java.lang.Object o)

valAt

public java.lang.Object valAt(java.lang.Object o,
                              java.lang.Object def)

invoke

public java.lang.Object invoke(java.lang.Object o)

invoke

public java.lang.Object invoke(java.lang.Object o,
                               java.lang.Object notfound)

assoc

public IPersistentMap assoc(java.lang.Object k,
                            java.lang.Object v)

assocEx

public IPersistentMap assocEx(java.lang.Object k,
                              java.lang.Object v)

without

public IPersistentMap without(java.lang.Object k)

containsKey

public boolean containsKey(java.lang.Object k)
Specified by:
containsKey in interface java.util.Map

entryAt

public IMapEntry entryAt(java.lang.Object k)

cons

public IPersistentCollection cons(java.lang.Object o)

empty

public IPersistentCollection empty()

equiv

public boolean equiv(java.lang.Object o)

iterator

public java.util.Iterator iterator()

containsValue

public boolean containsValue(java.lang.Object v)
Specified by:
containsValue in interface java.util.Map

entrySet

public java.util.Set entrySet()
Specified by:
entrySet in interface java.util.Map

get

public java.lang.Object get(java.lang.Object k)
Specified by:
get in interface java.util.Map

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface java.util.Map

keySet

public java.util.Set keySet()
Specified by:
keySet in interface java.util.Map

values

public java.util.Collection values()
Specified by:
values in interface java.util.Map

clear

public void clear()
Specified by:
clear in interface java.util.Map

put

public java.lang.Object put(java.lang.Object k,
                            java.lang.Object v)
Specified by:
put in interface java.util.Map

putAll

public void putAll(java.util.Map m)
Specified by:
putAll in interface java.util.Map

remove

public java.lang.Object remove(java.lang.Object k)
Specified by:
remove in interface java.util.Map