Class Reference2ByteArrayMap<K>

All Implemented Interfaces:
Function<K,​Byte>, Reference2ByteFunction<K>, Reference2ByteMap<K>, Serializable, Cloneable, Function<K,​Byte>, ToIntFunction<K>, Map<K,​Byte>

public class Reference2ByteArrayMap<K>
extends AbstractReference2ByteMap<K>
implements Serializable, Cloneable
A simple, brute-force implementation of a map based on two parallel backing arrays.

The main purpose of this implementation is that of wrapping cleanly the brute-force approach to the storage of a very small number of pairs: just put them into two parallel arrays and scan linearly to find an item.

See Also:
Serialized Form