"

2013 FRC Java API

"

edu.wpi.first.wpilibj.networktables2.util
Class StringCache

java.lang.Object
  extended by 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

Constructor Summary
StringCache()
           
 
Method Summary
abstract  String calc(String input)
          Will only be called if a value has not already been calculated
 String get(String input)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringCache

public StringCache()
Method Detail

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

"

2013 FRC Java API

"

"
For updated information see the Java FRC site
"