站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 4.0.0.11754MR2 API 英文版文档

AbstractHashTable (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.drools.util
Class AbstractHashTable

java.lang.Object
  extended by org.drools.util.AbstractHashTable
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
FactHandleIndexHashTable, FactHashTable, ObjectHashMap, ObjectHashSet, TupleHashTable, TupleIndexHashTable

public abstract class AbstractHashTable
extends Object
implements Serializable

See Also:
Serialized Form

Nested Class Summary
static class AbstractHashTable.DoubleCompositeIndex
           
static class AbstractHashTable.EqualityEquals
           
static class AbstractHashTable.FactEntry
           
static class AbstractHashTable.FieldIndex
           
static class AbstractHashTable.HashTableIterator
          Fast re-usable iterator
static interface AbstractHashTable.Index
           
static class AbstractHashTable.InstanceEquals
           
static interface AbstractHashTable.ObjectComparator
           
static class AbstractHashTable.SingleIndex
           
static class AbstractHashTable.TripleCompositeIndex
           
 
Field Summary
protected  AbstractHashTable.ObjectComparator comparator
           
protected  float loadFactor
           
protected  int size
           
protected  Entry[] table
           
protected  int threshold
           
 
Constructor Summary
AbstractHashTable()
           
AbstractHashTable(Entry[] table)
           
AbstractHashTable(float loadFactor, Entry[] table)
           
AbstractHashTable(int capacity, float loadFactor)
           
 
Method Summary
protected  Entry getBucket(int hashCode)
           
abstract  Entry getBucket(Object object)
           
 Entry[] getTable()
           
protected  int indexOf(int hashCode, int dataSize)
           
 boolean isEmpty()
           
 Iterator iterator()
           
protected  void resize(int newCapacity)
           
 void setComparator(AbstractHashTable.ObjectComparator comparator)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

size

protected int size

threshold

protected int threshold

loadFactor

protected float loadFactor

comparator

protected AbstractHashTable.ObjectComparator comparator

table

protected Entry[] table
Constructor Detail

AbstractHashTable

public AbstractHashTable()

AbstractHashTable

public AbstractHashTable(int capacity,
                         float loadFactor)

AbstractHashTable

public AbstractHashTable(Entry[] table)

AbstractHashTable

public AbstractHashTable(float loadFactor,
                         Entry[] table)
Method Detail

iterator

public Iterator iterator()

setComparator

public void setComparator(AbstractHashTable.ObjectComparator comparator)

resize

protected void resize(int newCapacity)

getBucket

protected Entry getBucket(int hashCode)

getTable

public Entry[] getTable()

size

public int size()

isEmpty

public boolean isEmpty()

indexOf

protected int indexOf(int hashCode,
                      int dataSize)

getBucket

public abstract Entry getBucket(Object object)


Copyright © 2001-2007 JBoss Inc.. All Rights Reserved.