|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.util.Set
public class Set
This is a simple hash set, storing keys in byte arrays.
The TokenMap class extends it to a hash map.
| Field Summary | |
|---|---|
int |
size
Hash entries. |
| Constructor Summary | |
|---|---|
Set()
Empty Constructor. |
|
| Method Summary | |
|---|---|
int |
add(byte[] key)
Indexes the specified key. |
int |
delete(byte[] key)
Deletes the specified key. |
int |
id(byte[] key)
Returns the id of the specified key or 0 if key was not found. |
byte[] |
key(int p)
Returns the specified key. |
byte[][] |
keys()
Returns the hash keys. |
int |
size()
Returns number of entries. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int size
size - 1.
| Constructor Detail |
|---|
public Set()
| Method Detail |
|---|
public int add(byte[] key)
key - key
public final int delete(byte[] key)
key - key
public final int id(byte[] key)
key - key to be found
public final byte[] key(int p)
p - key index
public final byte[][] keys()
public final int size()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||