public class MapData<TKey,TValue> extends java.lang.Object implements IMapData<TKey,TValue>
Constructor and Description |
---|
MapData(int size)
Constructor initializes with array sizes.
|
MapData(int size,
java.lang.Class<?> genericTypeParameterKey,
java.lang.Class<?> genericTypeParameterValue)
Constructor initializes with array sizes.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
getGenericTypeParameterKey()
Returns the TKey generic type parameter's class.
|
java.lang.Class<?> |
getGenericTypeParameterValue()
Returns the TValue generic type parameter's class.
|
TKey[] |
getKeys()
The keys
|
TValue[] |
getValues()
The values
|
java.util.Iterator<KeyValuePair<TKey,TValue>> |
iterator()
Enumerates key/value pairs
|
int |
size()
The key/value count
|
java.lang.String |
toString() |
public MapData(int size)
SuperTypeTokenException
- If not called using anonymous class semanticspublic MapData(int size, java.lang.Class<?> genericTypeParameterKey, java.lang.Class<?> genericTypeParameterValue)
java.lang.NullPointerException
- When a generic type parameter is nullpublic TValue[] getValues()
public int size()
public java.util.Iterator<KeyValuePair<TKey,TValue>> iterator()
iterator
in interface java.lang.Iterable<KeyValuePair<TKey,TValue>>
java.lang.IllegalStateException
- If the keys and values collections are not of equal sizepublic java.lang.Class<?> getGenericTypeParameterKey()
getGenericTypeParameterKey
in interface ReifiedMap<TKey,TValue>
public java.lang.Class<?> getGenericTypeParameterValue()
getGenericTypeParameterValue
in interface ReifiedMap<TKey,TValue>
public java.lang.String toString()
toString
in class java.lang.Object