"

2013 FRC Java API

"

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

java.lang.Object
  extended by edu.wpi.first.wpilibj.networktables2.util.ResizeableArrayObject
      extended by 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

Field Summary
 
Fields inherited from class edu.wpi.first.wpilibj.networktables2.util.ResizeableArrayObject
array
 
Constructor Summary
CharacterArrayMap()
           
 
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
 
Methods inherited from class edu.wpi.first.wpilibj.networktables2.util.ResizeableArrayObject
arraySize, ensureSize
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharacterArrayMap

public CharacterArrayMap()
Method Detail

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 -

"

2013 FRC Java API

"

"
For updated information see the Java FRC site
"