org.cruxframework.crux.core.client.collection
Class FastMap<V>
java.lang.Object
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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FastMap
public FastMap()
- Default Constructor
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.