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
,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
ModifierConstructorDescriptionprotected
HashTable_V1
(com.ibm.j9ddr.vm29.pointer.generated.J9HashTablePointer hashTablePointer, boolean isInline, Class<StructType> structType, HashTable.HashEqualFunction<StructType> equalFn, HashTable.HashFunction<StructType> hashFn) 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) -
Method Summary
Modifier and TypeMethodDescriptionfind
(StructType entry) Find an entry in the hash table.long
getCount()
Returns the number of elements in a given pool.Returns the name of the tableboolean
iterator()
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:HashTable
Returns the name of the table- Specified by:
getTableName
in interfaceIHashTable<StructType extends AbstractPointer>
- Specified by:
getTableName
in classHashTable<StructType extends AbstractPointer>
- Returns:
- the number of elements in the pool
-
getCount
public long getCount()Description copied from class:HashTable
Returns the number of elements in a given pool.- Specified by:
getCount
in interfaceIHashTable<StructType extends AbstractPointer>
- Specified by:
getCount
in classHashTable<StructType extends AbstractPointer>
- Returns:
- the number of elements in the pool
-
find
Description copied from class:HashTable
Find an entry in the hash table.- Specified by:
find
in 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:HashTable
Returns an iterator over the elements in the pool- Specified by:
iterator
in interfaceIHashTable<StructType extends AbstractPointer>
- Specified by:
iterator
in classHashTable<StructType extends AbstractPointer>
- Returns:
- an Iterator
-