edu.berkeley.nlp.lm.collections
Class AbstractTMap<T extends Comparable>

java.lang.Object
  extended by edu.berkeley.nlp.lm.collections.AbstractTMap<T>
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
TIntMap

public abstract class AbstractTMap<T extends Comparable>
extends Object
implements Serializable

Contains some limited shared functionality between Custom[type]Maps

Author:
Adam Pauls, Percy Liang
See Also:
Serialized Form

Nested Class Summary
static class AbstractTMap.Functionality<T extends Comparable>
           
protected static class AbstractTMap.MapType
           
 
Field Summary
protected static int defaultExpectedSize
           
protected static int growFactor
           
protected  AbstractTMap.Functionality<T> keyFunc
           
protected  T[] keys
           
protected static double loadFactor
           
protected  boolean locked
           
protected  AbstractTMap.MapType mapType
           
protected  int num
           
protected  int numCollisions
           
protected static long serialVersionUID
           
 
Constructor Summary
AbstractTMap()
           
 
Method Summary
static
<T extends Comparable>
AbstractTMap.Functionality<T>
defaultFunctionality()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

protected static final long serialVersionUID
See Also:
Constant Field Values

growFactor

protected static final int growFactor
See Also:
Constant Field Values

defaultExpectedSize

protected static final int defaultExpectedSize
See Also:
Constant Field Values

loadFactor

protected static final double loadFactor
See Also:
Constant Field Values

mapType

protected AbstractTMap.MapType mapType

locked

protected boolean locked

num

protected int num

keys

protected T extends Comparable[] keys

keyFunc

protected AbstractTMap.Functionality<T extends Comparable> keyFunc

numCollisions

protected int numCollisions
Constructor Detail

AbstractTMap

public AbstractTMap()
Method Detail

defaultFunctionality

public static <T extends Comparable> AbstractTMap.Functionality<T> defaultFunctionality()