org.eclipse.jdt.internal.compiler.util
类 SimpleLookupTable

java.lang.Object
  继承者 org.eclipse.jdt.internal.compiler.util.SimpleLookupTable
所有已实现的接口:
Cloneable

public final class SimpleLookupTable
extends Object
implements Cloneable

A simple lookup table is a non-synchronized Hashtable, whose keys and values are Objects. It also uses linear probing to resolve collisions rather than a linked list of hash table entries.


字段摘要
 int elementSize
           
 Object[] keyTable
           
 int threshold
           
 Object[] valueTable
           
 
构造方法摘要
SimpleLookupTable()
           
SimpleLookupTable(int size)
           
 
方法摘要
 Object clone()
           
 boolean containsKey(Object key)
           
 Object get(Object key)
           
 Object getKey(Object key)
           
 Object keyForValue(Object valueToMatch)
           
 Object put(Object key, Object value)
           
 Object removeKey(Object key)
           
 void removeValue(Object valueToRemove)
           
 String toString()
           
 
从类 java.lang.Object 继承的方法
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

字段详细信息

keyTable

public Object[] keyTable

valueTable

public Object[] valueTable

elementSize

public int elementSize

threshold

public int threshold
构造方法详细信息

SimpleLookupTable

public SimpleLookupTable()

SimpleLookupTable

public SimpleLookupTable(int size)
方法详细信息

clone

public Object clone()
             throws CloneNotSupportedException
覆盖:
Object 中的 clone
抛出:
CloneNotSupportedException

containsKey

public boolean containsKey(Object key)

get

public Object get(Object key)

getKey

public Object getKey(Object key)

keyForValue

public Object keyForValue(Object valueToMatch)

put

public Object put(Object key,
                  Object value)

removeKey

public Object removeKey(Object key)

removeValue

public void removeValue(Object valueToRemove)

toString

public String toString()
覆盖:
Object 中的 toString


Copyright © 2013. All Rights Reserved.