public class ArrayMap extends Object
| Constructor and Description |
|---|
ArrayMap()
Default constructor.
|
ArrayMap(int size)
Constructor with initial capacity supplied.
|
| Modifier and Type | Method and Description |
|---|---|
int |
find(Object obj)
Find existing object.
|
int |
findOrAdd(Object obj)
Add object.
|
Object |
get(int index)
Get value for index.
|
int |
size()
Get count of values present.
|
public ArrayMap()
public ArrayMap(int size)
size - initial capacity for array mappublic Object get(int index)
index - number to be looked uppublic int find(Object obj)
obj - value to be found-1 if not foundpublic int findOrAdd(Object obj)
obj - value to be addedpublic int size()
Copyright © 2005–2016 jibx.org. All rights reserved.