Package lib.util
Class Storage
java.lang.Object
lib.util.Storage
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
-