Class SmallMap

  • All Implemented Interfaces:
    Serializable, Map

    public class SmallMap
    extends AbstractMap
    implements Serializable
    Lightweight implementation of Map which uses little memory to store a small number of mappings, at the expense of scalability. Not recommended for more than 20-30 mappings.

    This implementation has the useful property that the iteration order is the same as the order in which mappings are added.

    Thomas Down, Len Trigg
    See Also:
    Serialized Form