edu.wpi.first.wpilibj.networktables2.util
Class CharacterArrayMap
java.lang.Object
edu.wpi.first.wpilibj.networktables2.util.ResizeableArrayObject
edu.wpi.first.wpilibj.networktables2.util.CharacterArrayMap
public class CharacterArrayMap
- extends ResizeableArrayObject
An unsynchronized map which maps characters to objects. This map is backed by a array and will only perform well the values are consecutive starting at 0
- Author:
- Mitchell
Method Summary |
void |
clear()
clear all values |
Object |
get(char key)
|
void |
put(char key,
Object value)
Put a value with the given key |
void |
remove(char key)
Remove the value for the given key |
CharacterArrayMap
public CharacterArrayMap()
put
public void put(char key,
Object value)
- Put a value with the given key
- Parameters:
key
- value
-
get
public Object get(char key)
- Parameters:
key
-
- Returns:
- the value associated with the given key or null if there is no value
clear
public void clear()
- clear all values
remove
public void remove(char key)
- Remove the value for the given key
- Parameters:
key
-
"For updated information see the Java FRC site"