"

2013 FRC Java API

"

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

java.lang.Object
  extended by edu.wpi.first.wpilibj.networktables2.util.ResizeableArrayObject
      extended by edu.wpi.first.wpilibj.networktables2.util.ByteArrayMap

public class ByteArrayMap
extends ResizeableArrayObject

An unsynchronized map which maps bytes 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
ByteArrayMap()
           
 
Method Summary
 void clear()
          clear all values
 Object get(byte key)
           
 void put(byte 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

ByteArrayMap

public ByteArrayMap()
Method Detail

put

public void put(byte key,
                Object value)
Put a value with the given key

Parameters:
key -
value -

get

public Object get(byte 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
"