|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.util.Atts
public final class Atts
This is a simple container for attributes (keys and values).
| Field Summary | |
|---|---|
byte[][] |
key
Key array. |
int |
size
Current array size. |
byte[][] |
val
Value array. |
| Constructor Summary | |
|---|---|
Atts()
|
|
| Method Summary | |
|---|---|
Atts |
add(byte[] k,
byte[] v)
Adds next value. |
boolean |
contains(byte[] k)
Checks if the specified key is found. |
void |
delete(int i)
Deletes the specified entry. |
int |
get(byte[] k)
Returns the reference for the specified key. |
Atts |
reset()
Resets the integer list. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public byte[][] key
public byte[][] val
public int size
| Constructor Detail |
|---|
public Atts()
| Method Detail |
|---|
public Atts add(byte[] k,
byte[] v)
k - key to be addedv - value to be added
public void delete(int i)
i - entry to be deletedpublic boolean contains(byte[] k)
k - key to be checked
public int get(byte[] k)
k - key to be found
public Atts reset()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||