public class NumberHashMap extends NumberFixedLength implements HashMapInterface<Integer,String>
frameBody, identifier, logger, size, TYPE_ELEMENT, value
Constructor and Description |
---|
NumberHashMap(NumberHashMap copyObject) |
NumberHashMap(String identifier,
AbstractTagFrameBody frameBody,
int size)
Creates a new ObjectNumberHashMap datatype.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Map<Integer,String> |
getKeyToValue() |
Map<String,Integer> |
getValueToKey() |
Iterator<String> |
iterator() |
void |
readByteArray(byte[] arr,
int offset)
Read the key from the buffer.
|
void |
setValue(Object value)
Set the value held by this datatype, this is used typically used when the
user wants to modify the value in an existing frame.
|
String |
toString() |
getSize, setSize, writeByteArray
createStructure, getBody, getIdentifier, getValue, readByteArray, setBody
public NumberHashMap(String identifier, AbstractTagFrameBody frameBody, int size)
identifier
- frameBody
- size
- IllegalArgumentException
public NumberHashMap(NumberHashMap copyObject)
public Map<Integer,String> getKeyToValue()
getKeyToValue
in interface HashMapInterface<Integer,String>
public Map<String,Integer> getValueToKey()
getValueToKey
in interface HashMapInterface<Integer,String>
public void setValue(Object value)
AbstractDataType
setValue
in class NumberFixedLength
value
- public boolean equals(Object obj)
equals
in class NumberFixedLength
obj
- public Iterator<String> iterator()
iterator
in interface HashMapInterface<Integer,String>
public void readByteArray(byte[] arr, int offset) throws InvalidDataTypeException
readByteArray
in class NumberFixedLength
arr
- offset
- InvalidDataTypeException
- if emptyValues are not allowed and the eky was invalid.public String toString()
toString
in class NumberFixedLength
Copyright © 2005–2020 jthink.net. All rights reserved.