public class Packet extends MadaraJNI
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears all records from the packet
|
void |
erase(java.lang.String index)
Erases the record at the specified index
|
boolean |
exists(java.lang.String index)
Checks if there is a record at the specified index
|
static Packet |
fromPointer(long cptr)
Creates a
Variables from a pointer |
KnowledgeRecord |
get(java.lang.String index)
Gets the record at the specified index
|
java.lang.String[] |
getKeys()
Gets all keys in the packet
|
void |
set(java.lang.String index,
KnowledgeRecord record)
Sets the record at the specified index
|
public static Packet fromPointer(long cptr)
Variables from a pointercptr - C pointer to a Variables objectVariablespublic KnowledgeRecord get(java.lang.String index)
index - the index of the recordpublic void clear()
public void erase(java.lang.String index)
index - the index of the recordpublic boolean exists(java.lang.String index)
index - the index of the recordpublic void set(java.lang.String index,
KnowledgeRecord record)
index - the index of the recordrecord - the record to set at the indexpublic java.lang.String[] getKeys()