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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
Copyright © 2013. All rights reserved.