public class TriplyIndexedTable
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
protected static class |
TriplyIndexedTable.Entry
To manage collisions
|
Modifier and Type | Field and Description |
---|---|
protected int |
count
The number of entries
|
protected static int |
INITIAL_CAPACITY
The initial capacity
|
protected TriplyIndexedTable.Entry[] |
table
The underlying array
|
Constructor and Description |
---|
TriplyIndexedTable()
Creates a new TriplyIndexedTable.
|
TriplyIndexedTable(int c)
Creates a new TriplyIndexedTable.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
get(java.lang.Object o1,
java.lang.Object o2,
java.lang.Object o3)
Gets the value of an entry
|
protected int |
hashCode(java.lang.Object o1,
java.lang.Object o2,
java.lang.Object o3)
Computes a hash code corresponding to the given objects.
|
java.lang.Object |
put(java.lang.Object o1,
java.lang.Object o2,
java.lang.Object o3,
java.lang.Object value)
Puts a value in the table.
|
protected void |
rehash()
Rehash the table
|
int |
size()
Returns the size of this table.
|
protected static final int INITIAL_CAPACITY
protected TriplyIndexedTable.Entry[] table
protected int count
public TriplyIndexedTable()
public TriplyIndexedTable(int c)
c
- The inital capacity.public int size()
public java.lang.Object put(java.lang.Object o1, java.lang.Object o2, java.lang.Object o3, java.lang.Object value)
public java.lang.Object get(java.lang.Object o1, java.lang.Object o2, java.lang.Object o3)
protected void rehash()
protected int hashCode(java.lang.Object o1, java.lang.Object o2, java.lang.Object o3)
Copyright © 2022 Apache Software Foundation. All Rights Reserved.