Subclasses of this class are of the following form:
class FooMap extends sun.util.PreHashedMap<String> { private FooMap() { super(ROWS, SIZE, SHIFT, MASK); } protected void init(Object[] ht) { ht[0] = new Object[] { "key-1", value_1 }; ht[1] = new Object[] { "key-2", value_2, new Object { "key-3", value_3 } }; ... } }
The init method is invoked by the PreHashedMap constructor with an object array long enough for the map's rows.