BRUtil - Making Java a Kinder, Gentler, Place to be.

brutil
Class ArrayMap

java.lang.Object
  |
  +--brutil.AbstractMap
        |
        +--brutil.ArrayMap
All Implemented Interfaces:
Collection, Map

public class ArrayMap
extends AbstractMap

Array implementation of the Map interface. Good for very small data sets where the maximum number of elements is known. The internal representation is the Array class. Very memory-conscious, but operations take linear time.


Fields inherited from class brutil.AbstractMap
set
 
Constructor Summary
ArrayMap()
           
 
Method Summary
protected  Set setFactory()
          This method is abstract, to be replaced by subclasses to provide the correct implementation.
 
Methods inherited from class brutil.AbstractMap
clear, containsKey, get, isEmpty, put, remove, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayMap

public ArrayMap()
Method Detail

setFactory

protected Set setFactory()
Description copied from class: AbstractMap
This method is abstract, to be replaced by subclasses to provide the correct implementation.
Overrides:
setFactory in class AbstractMap


BRUtil - Making Java a Kinder, Gentler, Place to be.