public final class NetworkTableUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static edu.wpi.first.networktables.NetworkTableInstance |
inst
The root network table.
|
static edu.wpi.first.networktables.NetworkTable |
rootTable |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
concat(java.lang.String key1,
java.lang.String key2,
java.lang.String... more)
Concatenates multiple keys.
|
static DataType |
dataTypeForEntry(java.lang.String key)
Gets the data type most closely associated with the value of the given network table key.
|
static boolean |
flagMatches(int flags,
int flag)
Deprecated.
use
BitUtils.flagMatches(int, int) instead |
static boolean |
isDelete(int flags)
Checks if the given network table flags contains the
delete flag . |
static void |
shutdown()
Shuts down the default instance.
|
static void |
shutdown(edu.wpi.first.networktables.NetworkTableInstance instance)
Shuts down the network table client or server, then clears all entries from network tables.
|
public static final edu.wpi.first.networktables.NetworkTableInstance inst
public static final edu.wpi.first.networktables.NetworkTable rootTable
@Deprecated public static boolean flagMatches(int flags, int flag)
BitUtils.flagMatches(int, int)
insteadflags
- the network table flagsflag
- the flag to check (eg EntryListenerFlags.kDelete
)public static boolean isDelete(int flags)
delete flag
.
This is equivalent to flagMatches(flags, EntryListenerFlags.kDelete)
BitUtils.flagMatches(int, int)
public static DataType dataTypeForEntry(java.lang.String key)
key
- the network table key to get the data type forpublic static void shutdown()
public static void shutdown(edu.wpi.first.networktables.NetworkTableInstance instance)
public static java.lang.String concat(java.lang.String key1, java.lang.String key2, java.lang.String... more)
key1
- the first keykey2
- the second keymore
- optional extra keys to concatenate