com.taco.data
Interface IMapFactory


public interface IMapFactory

An factory for creating maps.


Field Summary
static IMapFactory HASH_MAP_FACTORY
          A map factory that creates hash maps.
static IMapFactory LINKED_HASH_MAP_FACTORY
          A map factory that creates linked hash maps.
static IMapFactory TREE_MAP_FACTORY
          A map factory that creates tree maps.
 
Method Summary
 java.util.Map createEmptyMap(int capacity)
          Create a new, empty map that is optimized for the argument number of entries.
 java.util.Map createMapCopy(java.util.Map map)
          Create a new map with the same key / value pairs as the argument map.
 

Field Detail

HASH_MAP_FACTORY

static final IMapFactory HASH_MAP_FACTORY
A map factory that creates hash maps.


LINKED_HASH_MAP_FACTORY

static final IMapFactory LINKED_HASH_MAP_FACTORY
A map factory that creates linked hash maps.


TREE_MAP_FACTORY

static final IMapFactory TREE_MAP_FACTORY
A map factory that creates tree maps.

Method Detail

createEmptyMap

java.util.Map createEmptyMap(int capacity)
Create a new, empty map that is optimized for the argument number of entries.


createMapCopy

java.util.Map createMapCopy(java.util.Map map)
Create a new map with the same key / value pairs as the argument map.