com.twistedmatrix.util
Class PrimitiveMap

java.lang.Object
  |
  +--java.util.AbstractMap
        |
        +--java.util.HashMap
              |
              +--com.twistedmatrix.util.PrimitiveMap
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class PrimitiveMap
extends java.util.HashMap

A HashMap that lets you use byte[] and Object[] as keys decently. That is, it compares by the *value* of the byte[] or Object[].

See Also:
Serialized Form

Inner classes inherited from class java.util.Map
java.util.Map.Entry
 
Constructor Summary
PrimitiveMap()
           
 
Method Summary
 java.lang.Object get(byte[] key)
           
 java.lang.Object get(java.lang.Object[] key)
           
 void put(byte[] key, java.lang.Object value)
           
 void put(java.lang.Object[] key, java.lang.Object value)
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

PrimitiveMap

public PrimitiveMap()
Method Detail

put

public void put(byte[] key,
                java.lang.Object value)

put

public void put(java.lang.Object[] key,
                java.lang.Object value)

get

public java.lang.Object get(byte[] key)

get

public java.lang.Object get(java.lang.Object[] key)