Package org.kobe.xbot.Utilities
Class XTablesData
java.lang.Object
org.kobe.xbot.Utilities.XTablesData
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
byte[]
byte[]
Retrieves all key-value pairs in dot notation from the current data structure.getType()
byte[]
getValue()
getWithType
(String key) Retrieves the value and its type for the given key.boolean
put
(String key, byte[] value, XTableProto.XTableMessage.Type type) boolean
int
size()
toJSON()
toProto()
void
updateFromRawJSON
(String json)
-
Constructor Details
-
XTablesData
public XTablesData()
-
-
Method Details
-
toProto
-
fromProto
-
put
-
size
public int size() -
getWithType
Retrieves the value and its type for the given key.- Parameters:
key
- The key for which to retrieve the value and type.- Returns:
- A Map.Entry containing the value as a byte array and its type as XTableProto.XTableMessage.Type, or null if the key doesn't exist.
-
get
-
get
-
renameKey
-
getTables
-
delete
-
getKeyValuePairs
Retrieves all key-value pairs in dot notation from the current data structure.- Returns:
- A map containing all key-value pairs in dot notation.
-
toJSON
-
getType
-
getTablesMap
-
getValue
public byte[] getValue() -
updateFromRawJSON
-