|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.armedbear.lisp.LispObject
org.armedbear.lisp.WeakHashTable
public class WeakHashTable
| Nested Class Summary | |
|---|---|
protected static class |
WeakHashTable.Comparator
|
protected static class |
WeakHashTable.EqlComparator
|
protected static class |
WeakHashTable.EqualComparator
|
protected static class |
WeakHashTable.EqualpComparator
|
| Field Summary | |
|---|---|
protected org.armedbear.lisp.WeakHashTable.HashEntry[] |
buckets
Array containing the actual key-value mappings. |
protected int |
count
The actual current number of key-value pairs. |
protected static float |
loadFactor
|
protected LispObject |
rehashSize
|
protected LispObject |
rehashThreshold
|
protected int |
threshold
The rounded product of the capacity and the load factor. |
| Method Summary | |
|---|---|
protected static int |
calculateInitialCapacity(int size)
|
LispObject |
classOf()
|
void |
clear()
|
LispObject |
ENTRIES()
Deprecated. |
boolean |
equalp(LispObject obj)
|
LispObject |
get(LispObject key)
|
int |
getCount()
Number of entries stored in the hash buckets. |
LispObject |
getEntries()
|
protected org.armedbear.lisp.WeakHashTable.HashEntry |
getEntry(LispObject key)
|
LispObject |
gethash(LispObject key)
|
LispObject |
gethash(LispObject key,
LispObject defaultValue)
|
LispObject |
gethash1(LispObject key)
|
LispObject |
getParts()
Implementing the getParts() protocol will allow INSPECT to return information about the substructure of a descendent of LispObject. |
LispObject |
getRehashSize()
|
LispObject |
getRehashThreshold()
|
int |
getSize()
How many hash buckets exist in the underlying data structure. |
Symbol |
getTest()
|
LispObject |
getWeakness()
|
LispObject |
MAPHASH(LispObject function)
|
static WeakHashTable |
newEqHashTable(int size,
LispObject rehashSize,
LispObject rehashThreshold,
LispObject weakness)
|
static WeakHashTable |
newEqlHashTable(int size,
LispObject rehashSize,
LispObject rehashThreshold,
LispObject weakness)
|
static WeakHashTable |
newEqualHashTable(int size,
LispObject rehashSize,
LispObject rehashThreshold,
LispObject weakness)
|
static WeakHashTable |
newEqualpHashTable(int size,
LispObject rehashSize,
LispObject rehashThreshold,
LispObject weakness)
|
java.lang.String |
printObject()
|
int |
psxhash()
|
void |
put(LispObject key,
LispObject value)
|
LispObject |
puthash(LispObject key,
LispObject newValue)
|
protected void |
rehash()
|
LispObject |
remhash(LispObject key)
|
LispObject |
remove(LispObject key)
|
LispObject |
typeOf()
|
LispObject |
typep(LispObject type)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final float loadFactor
protected final LispObject rehashSize
protected final LispObject rehashThreshold
protected int threshold
protected volatile org.armedbear.lisp.WeakHashTable.HashEntry[] buckets
protected volatile int count
| Method Detail |
|---|
protected static int calculateInitialCapacity(int size)
public static WeakHashTable newEqHashTable(int size,
LispObject rehashSize,
LispObject rehashThreshold,
LispObject weakness)
public static WeakHashTable newEqlHashTable(int size,
LispObject rehashSize,
LispObject rehashThreshold,
LispObject weakness)
public static WeakHashTable newEqualHashTable(int size,
LispObject rehashSize,
LispObject rehashThreshold,
LispObject weakness)
public static WeakHashTable newEqualpHashTable(int size,
LispObject rehashSize,
LispObject rehashThreshold,
LispObject weakness)
public final LispObject getRehashSize()
public final LispObject getRehashThreshold()
public int getSize()
public int getCount()
public LispObject typeOf()
typeOf in interface LispObjecttypeOf in class LispObjectpublic LispObject classOf()
classOf in class LispObjectpublic LispObject typep(LispObject type)
typep in class LispObjectpublic boolean equalp(LispObject obj)
equalp in class LispObjectpublic LispObject getParts()
LispObject
getParts in class LispObjectpublic void clear()
public LispObject gethash(LispObject key)
public LispObject gethash(LispObject key,
LispObject defaultValue)
public LispObject gethash1(LispObject key)
public LispObject puthash(LispObject key,
LispObject newValue)
public LispObject remhash(LispObject key)
public java.lang.String printObject()
printObject in class LispObjectpublic Symbol getTest()
public LispObject getWeakness()
protected org.armedbear.lisp.WeakHashTable.HashEntry getEntry(LispObject key)
public LispObject get(LispObject key)
public void put(LispObject key,
LispObject value)
public LispObject remove(LispObject key)
protected void rehash()
@Deprecated public LispObject ENTRIES()
ENTRIES in interface Hashtablepublic LispObject getEntries()
getEntries in interface Hashtablepublic LispObject MAPHASH(LispObject function)
public int psxhash()
psxhash in class LispObject
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||