org.cruxframework.crux.core.client.collection
Class FastMap<V>

java.lang.Object
  extended by org.cruxframework.crux.core.client.collection.FastMap<V>
Type Parameters:
V - value type

public class FastMap<V>
extends Object

Lightweight map implementation. This implementation has a superior performance compared to HashMap. It uses native javascript implementation to increase performance.


Constructor Summary
FastMap()
          Default Constructor
 
Method Summary
 void clear()
           
 boolean containsKey(String key)
           
 V get(String key)
           
 boolean isEmpty()
           
 FastList<String> keys()
           
 void put(String key, V value)
           
 V remove(String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FastMap

public FastMap()
Default Constructor

Method Detail

get

public final V get(String key)
Parameters:
key -
Returns:

put

public final void put(String key,
                      V value)
Parameters:
key -
value -

containsKey

public final boolean containsKey(String key)
Parameters:
key -
Returns:

remove

public final V remove(String key)
Parameters:
key -
Returns:

keys

public final FastList<String> keys()
Returns:

clear

public final void clear()

isEmpty

public final boolean isEmpty()


Copyright © 2014. All rights reserved.