Package edu.wpi.first.networktables
Class NetworkTableValue
java.lang.Object
edu.wpi.first.networktables.NetworkTableValue
A network table entry value.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanGet the boolean value.boolean[]Get the boolean[] value.doubleGet the double value.double[]Get the double[] value.floatgetFloat()Get the float value.float[]Get the float[] value.longGet the long value.long[]Get the long[] value.byte[]getRaw()Get the byte[] value.longGet the creation time of the value in server time.Get the String value.String[]Get the String[] value.longgetTime()Get the creation time of the value in local time.getType()Get the data type.getValue()Get the data value stored.inthashCode()booleanDetermine if entry value contains a boolean.booleanDetermine if entry value contains a boolean[].booleanisDouble()Determine if entry value contains a double.booleanDetermine if entry value contains a double[].booleanisFloat()Determine if entry value contains a float.booleanDetermine if entry value contains a float[].booleanDetermine if entry value contains a long.booleanDetermine if entry value contains a long[].booleanisRaw()Determine if entry value contains a byte[].booleanisString()Determine if entry value contains a String.booleanDetermine if entry value contains a String[].booleanisValid()Determine if entry value contains a value or is unassigned.static NetworkTableValuemakeBoolean(boolean value) Creates a boolean value.static NetworkTableValuemakeBoolean(boolean value, long time) Creates a boolean value.static NetworkTableValuemakeBooleanArray(boolean[] value) Creates a boolean[] value.static NetworkTableValuemakeBooleanArray(boolean[] value, long time) Creates a boolean[] value.static NetworkTableValuemakeBooleanArray(Boolean[] value) Creates a boolean[] value.static NetworkTableValuemakeBooleanArray(Boolean[] value, long time) Creates a boolean[] value.static NetworkTableValuemakeDouble(double value) Creates a double value.static NetworkTableValuemakeDouble(double value, long time) Creates a double value.static NetworkTableValuemakeDoubleArray(double[] value) Creates a double[] value.static NetworkTableValuemakeDoubleArray(double[] value, long time) Creates a double[] value.static NetworkTableValuemakeDoubleArray(Double[] value) Creates a double[] value.static NetworkTableValuemakeDoubleArray(Double[] value, long time) Creates a double[] value.static NetworkTableValuemakeFloat(float value) Creates a float value.static NetworkTableValuemakeFloat(float value, long time) Creates a float value.static NetworkTableValuemakeFloatArray(float[] value) Creates a float[] value.static NetworkTableValuemakeFloatArray(float[] value, long time) Creates a float[] value.static NetworkTableValuemakeFloatArray(Float[] value) Creates a float[] value.static NetworkTableValuemakeFloatArray(Float[] value, long time) Creates a float[] value.static NetworkTableValuemakeInteger(long value) Creates a long value.static NetworkTableValuemakeInteger(long value, long time) Creates a long value.static NetworkTableValuemakeIntegerArray(long[] value) Creates a long[] value.static NetworkTableValuemakeIntegerArray(long[] value, long time) Creates a long[] value.static NetworkTableValuemakeIntegerArray(Long[] value) Creates a long[] value.static NetworkTableValuemakeIntegerArray(Long[] value, long time) Creates a long[] value.static NetworkTableValuemakeRaw(byte[] value) Creates a byte[] value.static NetworkTableValuemakeRaw(byte[] value, long time) Creates a byte[] value.static NetworkTableValuemakeString(String value) Creates a String value.static NetworkTableValuemakeString(String value, long time) Creates a String value.static NetworkTableValuemakeStringArray(String[] value) Creates a String[] value.static NetworkTableValuemakeStringArray(String[] value, long time) Creates a String[] value.
-
Method Details
-
getType
Get the data type.- Returns:
- The type.
-
getValue
Get the data value stored.- Returns:
- The type.
-
getTime
Get the creation time of the value in local time.- Returns:
- The time, in the units returned by NetworkTablesJNI.now().
-
getServerTime
Get the creation time of the value in server time.- Returns:
- The server time.
-
isValid
Determine if entry value contains a value or is unassigned.- Returns:
- True if the entry value contains a value.
-
isBoolean
Determine if entry value contains a boolean.- Returns:
- True if the entry value is of boolean type.
-
isInteger
Determine if entry value contains a long.- Returns:
- True if the entry value is of long type.
-
isFloat
Determine if entry value contains a float.- Returns:
- True if the entry value is of float type.
-
isDouble
Determine if entry value contains a double.- Returns:
- True if the entry value is of double type.
-
isString
Determine if entry value contains a String.- Returns:
- True if the entry value is of String type.
-
isRaw
Determine if entry value contains a byte[].- Returns:
- True if the entry value is of byte[] type.
-
isBooleanArray
Determine if entry value contains a boolean[].- Returns:
- True if the entry value is of boolean[] type.
-
isIntegerArray
Determine if entry value contains a long[].- Returns:
- True if the entry value is of long[] type.
-
isFloatArray
Determine if entry value contains a float[].- Returns:
- True if the entry value is of float[] type.
-
isDoubleArray
Determine if entry value contains a double[].- Returns:
- True if the entry value is of double[] type.
-
isStringArray
Determine if entry value contains a String[].- Returns:
- True if the entry value is of String[] type.
-
getBoolean
Get the boolean value.- Returns:
- The boolean value.
- Throws:
ClassCastException- if the entry value is not of boolean type.
-
getInteger
Get the long value.- Returns:
- The long value.
- Throws:
ClassCastException- if the entry value is not of long type.
-
getFloat
Get the float value.- Returns:
- The float value.
- Throws:
ClassCastException- if the entry value is not of float type.
-
getDouble
Get the double value.- Returns:
- The double value.
- Throws:
ClassCastException- if the entry value is not of double type.
-
getString
Get the String value.- Returns:
- The String value.
- Throws:
ClassCastException- if the entry value is not of String type.
-
getRaw
Get the byte[] value.- Returns:
- The byte[] value.
- Throws:
ClassCastException- if the entry value is not of byte[] type.
-
getBooleanArray
Get the boolean[] value.- Returns:
- The boolean[] value.
- Throws:
ClassCastException- if the entry value is not of boolean[] type.
-
getIntegerArray
Get the long[] value.- Returns:
- The long[] value.
- Throws:
ClassCastException- if the entry value is not of long[] type.
-
getFloatArray
Get the float[] value.- Returns:
- The float[] value.
- Throws:
ClassCastException- if the entry value is not of float[] type.
-
getDoubleArray
Get the double[] value.- Returns:
- The double[] value.
- Throws:
ClassCastException- if the entry value is not of double[] type.
-
getStringArray
Get the String[] value.- Returns:
- The String[] value.
- Throws:
ClassCastException- if the entry value is not of String[] type.
-
makeBoolean
Creates a boolean value.- Parameters:
value- the value- Returns:
- The entry value
-
makeBoolean
Creates a boolean value.- Parameters:
value- the valuetime- the creation time to use (instead of the current time)- Returns:
- The entry value
-
makeInteger
Creates a long value.- Parameters:
value- the value- Returns:
- The entry value
-
makeInteger
Creates a long value.- Parameters:
value- the valuetime- the creation time to use (instead of the current time)- Returns:
- The entry value
-
makeFloat
Creates a float value.- Parameters:
value- the value- Returns:
- The entry value
-
makeFloat
Creates a float value.- Parameters:
value- the valuetime- the creation time to use (instead of the current time)- Returns:
- The entry value
-
makeDouble
Creates a double value.- Parameters:
value- the value- Returns:
- The entry value
-
makeDouble
Creates a double value.- Parameters:
value- the valuetime- the creation time to use (instead of the current time)- Returns:
- The entry value
-
makeString
Creates a String value.- Parameters:
value- the value- Returns:
- The entry value
-
makeString
Creates a String value.- Parameters:
value- the valuetime- the creation time to use (instead of the current time)- Returns:
- The entry value
-
makeRaw
Creates a byte[] value.- Parameters:
value- the value- Returns:
- The entry value
-
makeRaw
Creates a byte[] value.- Parameters:
value- the valuetime- the creation time to use (instead of the current time)- Returns:
- The entry value
-
makeBooleanArray
Creates a boolean[] value.- Parameters:
value- the value- Returns:
- The entry value
-
makeBooleanArray
Creates a boolean[] value.- Parameters:
value- the valuetime- the creation time to use (instead of the current time)- Returns:
- The entry value
-
makeBooleanArray
Creates a boolean[] value.- Parameters:
value- the value- Returns:
- The entry value
-
makeBooleanArray
Creates a boolean[] value.- Parameters:
value- the valuetime- the creation time to use (instead of the current time)- Returns:
- The entry value
-
makeIntegerArray
Creates a long[] value.- Parameters:
value- the value- Returns:
- The entry value
-
makeIntegerArray
Creates a long[] value.- Parameters:
value- the valuetime- the creation time to use (instead of the current time)- Returns:
- The entry value
-
makeIntegerArray
Creates a long[] value.- Parameters:
value- the value- Returns:
- The entry value
-
makeIntegerArray
Creates a long[] value.- Parameters:
value- the valuetime- the creation time to use (instead of the current time)- Returns:
- The entry value
-
makeFloatArray
Creates a float[] value.- Parameters:
value- the value- Returns:
- The entry value
-
makeFloatArray
Creates a float[] value.- Parameters:
value- the valuetime- the creation time to use (instead of the current time)- Returns:
- The entry value
-
makeFloatArray
Creates a float[] value.- Parameters:
value- the value- Returns:
- The entry value
-
makeFloatArray
Creates a float[] value.- Parameters:
value- the valuetime- the creation time to use (instead of the current time)- Returns:
- The entry value
-
makeDoubleArray
Creates a double[] value.- Parameters:
value- the value- Returns:
- The entry value
-
makeDoubleArray
Creates a double[] value.- Parameters:
value- the valuetime- the creation time to use (instead of the current time)- Returns:
- The entry value
-
makeDoubleArray
Creates a double[] value.- Parameters:
value- the value- Returns:
- The entry value
-
makeDoubleArray
Creates a double[] value.- Parameters:
value- the valuetime- the creation time to use (instead of the current time)- Returns:
- The entry value
-
makeStringArray
Creates a String[] value.- Parameters:
value- the value- Returns:
- The entry value
-
makeStringArray
Creates a String[] value.- Parameters:
value- the valuetime- the creation time to use (instead of the current time)- Returns:
- The entry value
-
equals
-
hashCode
-