Module openj9.dtfj
Package com.ibm.j9ddr.vm29.j9
Class HashTable_V1<StructType extends AbstractPointer>
java.lang.Object
com.ibm.j9ddr.vm29.j9.HashTable<StructType>
com.ibm.j9ddr.vm29.j9.HashTable_V1<StructType>
- All Implemented Interfaces:
IHashTable<StructType>
- Direct Known Subclasses:
ModuleHashTable,ObjectToSparseDataHashTable,PackageHashTable
-
Nested Class Summary
Nested classes/interfaces declared in class com.ibm.j9ddr.vm29.j9.HashTable
HashTable.HashEqualFunction<StructType>, HashTable.HashFunction<StructType> -
Field Summary
Fields declared in class com.ibm.j9ddr.vm29.j9.HashTable
_comparatorFn, _equalFn, _hashFn, _structType, _table -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedHashTable_V1(com.ibm.j9ddr.vm29.pointer.generated.J9HashTablePointer hashTablePointer, boolean isInline, Class<StructType> structType, HashTable.HashEqualFunction<StructType> equalFn, HashTable.HashFunction<StructType> hashFn) protectedHashTable_V1(com.ibm.j9ddr.vm29.pointer.generated.J9HashTablePointer hashTablePointer, boolean isInline, Class<StructType> structType, HashTable.HashFunction<StructType> hashFn, com.ibm.j9ddr.vm29.j9.HashTable.HashComparatorFunction<StructType> comparatorFn) -
Method Summary
Modifier and TypeMethodDescriptionfind(StructType entry) Find an entry in the hash table.longgetCount()Returns the number of elements in a given pool.Returns the name of the tablebooleaniterator()Returns an iterator over the elements in the poolMethods declared in class com.ibm.j9ddr.vm29.j9.HashTable
fromJ9HashTable, fromJ9HashTable
-
Constructor Details
-
HashTable_V1
protected HashTable_V1(com.ibm.j9ddr.vm29.pointer.generated.J9HashTablePointer hashTablePointer, boolean isInline, Class<StructType> structType, HashTable.HashEqualFunction<StructType> equalFn, HashTable.HashFunction<StructType> hashFn) throws CorruptDataException - Throws:
CorruptDataException
-
HashTable_V1
protected HashTable_V1(com.ibm.j9ddr.vm29.pointer.generated.J9HashTablePointer hashTablePointer, boolean isInline, Class<StructType> structType, HashTable.HashFunction<StructType> hashFn, com.ibm.j9ddr.vm29.j9.HashTable.HashComparatorFunction<StructType> comparatorFn) throws CorruptDataException - Throws:
CorruptDataException
-
-
Method Details
-
isSpaceOpt
public boolean isSpaceOpt() -
getTableName
Description copied from class:HashTableReturns the name of the table- Specified by:
getTableNamein interfaceIHashTable<StructType extends AbstractPointer>- Specified by:
getTableNamein classHashTable<StructType extends AbstractPointer>- Returns:
- the number of elements in the pool
-
getCount
public long getCount()Description copied from class:HashTableReturns the number of elements in a given pool.- Specified by:
getCountin interfaceIHashTable<StructType extends AbstractPointer>- Specified by:
getCountin classHashTable<StructType extends AbstractPointer>- Returns:
- the number of elements in the pool
-
find
Description copied from class:HashTableFind an entry in the hash table.- Specified by:
findin classHashTable<StructType extends AbstractPointer>- Parameters:
entry-- Returns:
- NULL if entry is not present in the table; otherwise a pointer to the user-data
- Throws:
CorruptDataException
-
iterator
Description copied from class:HashTableReturns an iterator over the elements in the pool- Specified by:
iteratorin interfaceIHashTable<StructType extends AbstractPointer>- Specified by:
iteratorin classHashTable<StructType extends AbstractPointer>- Returns:
- an Iterator
-