public class MiniModuleMetaMap extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_SIZE
The initial default size for the MiniModuleMetaMap.
|
protected Object[] |
theData
Contains the map's data.
|
protected int |
theIndex
The index of the next free element in the array.
|
Constructor and Description |
---|
MiniModuleMetaMap()
Constructor with default initial size.
|
MiniModuleMetaMap(int size)
Constructor with specified initial size.
|
Modifier and Type | Method and Description |
---|---|
ModuleMeta[] |
allValues()
Obtain all values in the map, regardless of key.
|
ModuleMeta[] |
get(String key)
Obtain the value for a given key.
|
ModuleMeta[] |
put(String key,
ModuleMeta[] value)
Add a key-value mapping to the map.
|
protected Object[] theData
protected int theIndex
public static final int DEFAULT_SIZE
public MiniModuleMetaMap()
public MiniModuleMetaMap(int size)
size
- the initial sizepublic ModuleMeta[] put(String key, ModuleMeta[] value)
key
- the keyvalue
- the valuepublic ModuleMeta[] get(String key)
key
- the keypublic ModuleMeta[] allValues()
Copyright © 2018. All rights reserved.