public class BinaryObjectCache
extends java.lang.Object
| Constructor and Description |
|---|
BinaryObjectCache()
Create an empty list.
|
| Modifier and Type | Method and Description |
|---|---|
int |
add(int index,
java.lang.Object obj)
Add an object to the end of the list.
|
int |
add(java.lang.Object obj)
Add an object at the specified index.
|
java.lang.Object |
get(int index)
Return the object found at the specified index.
|
int |
getIndex(java.lang.Object obj)
Return the index of the specified object.
|
public int add(java.lang.Object obj)
obj - Object to be added.public int add(int index,
java.lang.Object obj)
obj - Object to be added.public java.lang.Object get(int index)
throws java.lang.IndexOutOfBoundsException
index - Object index.java.lang.IndexOutOfBoundsException - If the index is outside the
list bounds.public int getIndex(java.lang.Object obj)
obj - Object to find in the list,