public class BinaryObjectCache extends Object
Constructor and Description |
---|
BinaryObjectCache()
Create an empty list.
|
Modifier and Type | Method and Description |
---|---|
int |
add(int index,
Object obj)
Add an object to the end of the list.
|
int |
add(Object obj)
Add an object at the specified index.
|
Object |
get(int index)
Return the object found at the specified index.
|
int |
getIndex(Object obj)
Return the index of the specified object.
|
public int add(Object obj)
obj
- Object to be added.public int add(int index, Object obj)
obj
- Object to be added.public Object get(int index) throws IndexOutOfBoundsException
index
- Object index.IndexOutOfBoundsException
- If the index is outside the
list bounds.public int getIndex(Object obj)
obj
- Object to find in the list,Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.