edu.wpi.first.wpilibj.networktables2.util
Class StringCache
java.lang.Object
edu.wpi.first.wpilibj.networktables2.util.StringCache
public abstract class StringCache
- extends Object
A simple cache that allows for caching the mapping of one string to another calculated one
- Author:
- Mitchell
StringCache
public StringCache()
get
public String get(String input)
- Parameters:
input
-
- Returns:
- the value for a given input
calc
public abstract String calc(String input)
- Will only be called if a value has not already been calculated
- Parameters:
input
-
- Returns:
- the calculated value for a given input
"For updated information see the Java FRC site"