Package lib.util
Class Storage
java.lang.Object
lib.util.Storage
This whole class exists as an attempt to fix some unexplained issues
with network tables forgetting saved data on robot restart.
This did not end up fixing the problem, hence the mess of logs in init().
Hopefully it was an issue with the roboRIO which will be fixed with the new computer.
Storage for values that need to persist on robot restart. Values are stored in plain text in the format
key1
Tval1
key2
Tval2
...
where keyN is the key passed to getX()/setX(), T is a char representing
the type of the value, and valN is the stringified value.-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic bytestatic doublestatic floatstatic intstatic longstatic shortstatic Stringstatic booleanstatic voidinit()static voidstatic voidsave()static voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic void
-
Method Details
-
init
public static void init() -
save
public static void save() -
remove
-
has
-
getByte
-
getShort
-
getInt
-
getLong
-
getFloat
-
getDouble
-
getBool
-
getString
-
setByte
-
setShort
-
setInt
-
setLong
-
setFloat
-
setDouble
-
setBool
-
setString
-