NetworkTable
.@Deprecated public interface ITable
Modifier and Type | Field and Description |
---|---|
static int |
NOTIFY_DELETE
Deprecated.
|
static int |
NOTIFY_FLAGS
Deprecated.
|
static int |
NOTIFY_IMMEDIATE
Deprecated.
Notifier flag values.
|
static int |
NOTIFY_LOCAL
Deprecated.
|
static int |
NOTIFY_NEW
Deprecated.
|
static int |
NOTIFY_UPDATE
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addSubTableListener(ITableListener listener)
Deprecated.
This will immediately notify the listener of all current sub tables
|
void |
addSubTableListener(ITableListener listener,
boolean localNotify)
Deprecated.
This will immediately notify the listener of all current sub tables
|
void |
addTableListener(ITableListener listener)
Deprecated.
Add a listener for changes to the table
|
void |
addTableListener(ITableListener listener,
boolean immediateNotify)
Deprecated.
Add a listener for changes to the table
|
void |
addTableListener(String key,
ITableListener listener,
boolean immediateNotify)
Deprecated.
Add a listener for changes to a specific key the table
|
void |
addTableListenerEx(ITableListener listener,
int flags)
Deprecated.
Add a listener for changes to the table
|
void |
addTableListenerEx(String key,
ITableListener listener,
int flags)
Deprecated.
Add a listener for changes to a specific key the table
|
void |
clearFlags(String key,
int flags)
Deprecated.
Clears flags on the specified key in this table.
|
void |
clearPersistent(String key)
Deprecated.
Stop making a key's value persistent through program restarts.
|
boolean |
containsKey(String key)
Deprecated.
Checks the table and tells if it contains the specified key
|
boolean |
containsSubTable(String key)
Deprecated.
|
void |
delete(String key)
Deprecated.
Deletes the specified key in this table.
|
boolean |
getBoolean(String key,
boolean defaultValue)
Deprecated.
Returns the boolean the key maps to.
|
boolean[] |
getBooleanArray(String key,
boolean[] defaultValue)
Deprecated.
Returns the boolean array the key maps to.
|
Boolean[] |
getBooleanArray(String key,
Boolean[] defaultValue)
Deprecated.
Returns the boolean array the key maps to.
|
double |
getDouble(String key,
double defaultValue)
Deprecated.
Use
getNumber(String, double) instead. |
int |
getFlags(String key)
Deprecated.
Returns the flags for the specified key.
|
Set<String> |
getKeys()
Deprecated.
Gets all keys in the table (not including sub-tables).
|
Set<String> |
getKeys(int types)
Deprecated.
Gets all keys in the table (not including sub-tables).
|
double |
getNumber(String key,
double defaultValue)
Deprecated.
Returns the number the key maps to.
|
double[] |
getNumberArray(String key,
double[] defaultValue)
Deprecated.
Returns the number array the key maps to.
|
Double[] |
getNumberArray(String key,
Double[] defaultValue)
Deprecated.
Returns the number array the key maps to.
|
String |
getPath()
Deprecated.
Gets the full path of this table.
|
byte[] |
getRaw(String key,
byte[] defaultValue)
Deprecated.
Returns the raw value (byte array) the key maps to.
|
String |
getString(String key,
String defaultValue)
Deprecated.
Returns the string the key maps to.
|
String[] |
getStringArray(String key,
String[] defaultValue)
Deprecated.
Returns the string array the key maps to.
|
ITable |
getSubTable(String key)
Deprecated.
Returns the table at the specified key.
|
Set<String> |
getSubTables()
Deprecated.
Gets the names of all subtables in the table.
|
Object |
getValue(String key,
Object defaultValue)
Deprecated.
Gets the value associated with a key as an object.
|
boolean |
isPersistent(String key)
Deprecated.
Returns whether the value is persistent through program restarts.
|
boolean |
putBoolean(String key,
boolean value)
Deprecated.
Put a boolean in the table
|
boolean |
putBooleanArray(String key,
boolean[] value)
Deprecated.
Put a boolean array in the table
|
boolean |
putBooleanArray(String key,
Boolean[] value)
Deprecated.
Put a boolean array in the table
|
boolean |
putDouble(String key,
double value)
Deprecated.
Use
putNumber(String, double) instead. |
boolean |
putNumber(String key,
double value)
Deprecated.
Put a number in the table
|
boolean |
putNumberArray(String key,
double[] value)
Deprecated.
Put a number array in the table
|
boolean |
putNumberArray(String key,
Double[] value)
Deprecated.
Put a number array in the table
|
boolean |
putRaw(String key,
byte[] value)
Deprecated.
Put a raw value (byte array) in the table
|
boolean |
putRaw(String key,
ByteBuffer value,
int len)
Deprecated.
Put a raw value (bytes from a byte buffer) in the table
|
boolean |
putString(String key,
String value)
Deprecated.
Put a string in the table
|
boolean |
putStringArray(String key,
String[] value)
Deprecated.
Put a string array in the table
|
boolean |
putValue(String key,
Object value)
Deprecated.
Put a value in the table
|
void |
removeTableListener(ITableListener listener)
Deprecated.
Remove a listener from receiving table events
|
boolean |
setDefaultBoolean(String key,
boolean defaultValue)
Deprecated.
Gets the current value in the table, setting it if it does not exist.
|
boolean |
setDefaultBooleanArray(String key,
boolean[] defaultValue)
Deprecated.
Gets the current value in the table, setting it if it does not exist.
|
boolean |
setDefaultBooleanArray(String key,
Boolean[] defaultValue)
Deprecated.
Gets the current value in the table, setting it if it does not exist.
|
boolean |
setDefaultNumber(String key,
double defaultValue)
Deprecated.
Gets the current value in the table, setting it if it does not exist.
|
boolean |
setDefaultNumberArray(String key,
double[] defaultValue)
Deprecated.
Gets the current value in the table, setting it if it does not exist.
|
boolean |
setDefaultNumberArray(String key,
Double[] defaultValue)
Deprecated.
Gets the current value in the table, setting it if it does not exist.
|
boolean |
setDefaultRaw(String key,
byte[] defaultValue)
Deprecated.
Gets the current value in the table, setting it if it does not exist.
|
boolean |
setDefaultString(String key,
String defaultValue)
Deprecated.
Gets the current value in the table, setting it if it does not exist.
|
boolean |
setDefaultStringArray(String key,
String[] defaultValue)
Deprecated.
Gets the current value in the table, setting it if it does not exist.
|
void |
setFlags(String key,
int flags)
Deprecated.
Sets flags on the specified key in this table.
|
void |
setPersistent(String key)
Deprecated.
Makes a key's value persistent through program restarts.
|
static final int NOTIFY_IMMEDIATE
static final int NOTIFY_LOCAL
static final int NOTIFY_NEW
static final int NOTIFY_DELETE
static final int NOTIFY_UPDATE
static final int NOTIFY_FLAGS
boolean containsKey(String key)
key
- the key to search forboolean containsSubTable(String key)
key
- the key to search forITable getSubTable(String key)
key
- the name of the table relative to this oneSet<String> getKeys(int types)
types
- bitmask of types; 0 is treated as a "don't care".Set<String> getKeys()
Set<String> getSubTables()
void setPersistent(String key)
key
- the key namevoid clearPersistent(String key)
key
- the key nameboolean isPersistent(String key)
key
- the key namevoid setFlags(String key, int flags)
key
- the key nameflags
- the flags to set (bitmask)void clearFlags(String key, int flags)
key
- the key nameflags
- the flags to clear (bitmask)int getFlags(String key)
key
- the key namevoid delete(String key)
key
- the key nameObject getValue(String key, Object defaultValue)
getDouble(String, double)
.key
- the key of the value to look updefaultValue
- the default value if the key is nullboolean putValue(String key, Object value) throws IllegalArgumentException
key
- the key to be assigned tovalue
- the value that will be assignedIllegalArgumentException
- when the value is not supported by the
tableboolean putNumber(String key, double value)
key
- the key to be assigned tovalue
- the value that will be assignedboolean setDefaultNumber(String key, double defaultValue)
key
- the keydefaultValue
- the default value to set if key doens't exist.double getNumber(String key, double defaultValue)
key
- the key to look updefaultValue
- the value to be returned if no value is foundboolean putString(String key, String value)
key
- the key to be assigned tovalue
- the value that will be assignedboolean setDefaultString(String key, String defaultValue)
key
- the keydefaultValue
- the default value to set if key doens't exist.String getString(String key, String defaultValue)
key
- the key to look updefaultValue
- the value to be returned if no value is foundboolean putBoolean(String key, boolean value)
key
- the key to be assigned tovalue
- the value that will be assignedboolean setDefaultBoolean(String key, boolean defaultValue)
key
- the keydefaultValue
- the default value to set if key doens't exist.boolean getBoolean(String key, boolean defaultValue)
key
- the key to look updefaultValue
- the value to be returned if no value is foundboolean putBooleanArray(String key, boolean[] value)
key
- the key to be assigned tovalue
- the value that will be assignedboolean setDefaultBooleanArray(String key, boolean[] defaultValue)
key
- the keydefaultValue
- the default value to set if key doens't exist.boolean putBooleanArray(String key, Boolean[] value)
key
- the key to be assigned tovalue
- the value that will be assignedboolean setDefaultBooleanArray(String key, Boolean[] defaultValue)
key
- the keydefaultValue
- the default value to set if key doens't exist.boolean[] getBooleanArray(String key, boolean[] defaultValue)
key
- the key to look updefaultValue
- the value to be returned if no value is foundBoolean[] getBooleanArray(String key, Boolean[] defaultValue)
key
- the key to look updefaultValue
- the value to be returned if no value is foundboolean putNumberArray(String key, double[] value)
key
- the key to be assigned tovalue
- the value that will be assignedboolean setDefaultNumberArray(String key, double[] defaultValue)
key
- the keydefaultValue
- the default value to set if key doens't exist.boolean putNumberArray(String key, Double[] value)
key
- the key to be assigned tovalue
- the value that will be assignedboolean setDefaultNumberArray(String key, Double[] defaultValue)
key
- the keydefaultValue
- the default value to set if key doens't exist.double[] getNumberArray(String key, double[] defaultValue)
key
- the key to look updefaultValue
- the value to be returned if no value is foundDouble[] getNumberArray(String key, Double[] defaultValue)
key
- the key to look updefaultValue
- the value to be returned if no value is foundboolean putStringArray(String key, String[] value)
key
- the key to be assigned tovalue
- the value that will be assignedboolean setDefaultStringArray(String key, String[] defaultValue)
key
- the keydefaultValue
- the default value to set if key doens't exist.String[] getStringArray(String key, String[] defaultValue)
key
- the key to look updefaultValue
- the value to be returned if no value is foundboolean putRaw(String key, byte[] value)
key
- the key to be assigned tovalue
- the value that will be assignedboolean setDefaultRaw(String key, byte[] defaultValue)
key
- the keydefaultValue
- the default value to set if key doens't exist.boolean putRaw(String key, ByteBuffer value, int len)
key
- the key to be assigned tovalue
- the value that will be assignedlen
- the length of the valuebyte[] getRaw(String key, byte[] defaultValue)
key
- the key to look updefaultValue
- the value to be returned if no value is foundvoid addTableListener(ITableListener listener)
listener
- the listener to addvoid addTableListener(ITableListener listener, boolean immediateNotify)
listener
- the listener to addimmediateNotify
- if true then this listener will be notified of all
current entries (marked as new)void addTableListenerEx(ITableListener listener, int flags)
listener
- the listener to addflags
- bitmask specifying desired notificationsvoid addTableListener(String key, ITableListener listener, boolean immediateNotify)
key
- the key to listen forlistener
- the listener to addimmediateNotify
- if true then this listener will be notified of all
current entries (marked as new)void addTableListenerEx(String key, ITableListener listener, int flags)
key
- the key to listen forlistener
- the listener to addflags
- bitmask specifying desired notificationsvoid addSubTableListener(ITableListener listener)
listener
- the listener to notifyvoid addSubTableListener(ITableListener listener, boolean localNotify)
listener
- the listener to notifylocalNotify
- if true then this listener will be notified of all
local changes in addition to all remote changesvoid removeTableListener(ITableListener listener)
listener
- the listener to be removed@Deprecated boolean putDouble(String key, double value)
putNumber(String, double)
instead.key
- the keyvalue
- the valueIllegalArgumentException
- if key is null@Deprecated double getDouble(String key, double defaultValue)
getNumber(String, double)
instead.key
- the keydefaultValue
- the value returned if the key is undefinedIllegalArgumentException
- if the value mapped to by the key is not a
doubleIllegalArgumentException
- if the key is nullString getPath()