|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hedgehog.HObject
com.hedgehog.utility.IndexObject<ObjectType>
ObjectType - Object type.public class IndexObject<ObjectType>
Title: IndexObject - represents an object indirectly as an index into a vector of objects.
Description: Represents an object indirectly as an index into a vector of objects.
Copyright: Copyright (c) Hedgehog Software.
Company: Hedgehog Software.
| Field Summary | |
|---|---|
protected int |
mObjectIndex
Index into vector of objects. |
protected java.util.ArrayList<ObjectType> |
mObjectVector
Vector of objects. |
| Fields inherited from class com.hedgehog.HObject |
|---|
mID, mName |
| Constructor Summary | |
|---|---|
IndexObject()
Default constructor. |
|
IndexObject(java.util.ArrayList<ObjectType> objectVector,
int objectIndex)
Constructor. |
|
IndexObject(IndexObject<ObjectType> object)
Copy constructor. |
|
| Method Summary | |
|---|---|
ObjectType |
getObject()
Returns the actual object that the object index refers to. |
int |
getObjectIndex()
Returns the obect index. |
java.util.ArrayList<ObjectType> |
getObjectVector()
Returns the object vector. |
void |
setObjectIndex(int objectIndex)
Sets the object index. |
void |
setObjectVector(java.util.ArrayList<ObjectType> objectVector)
Sets the object vector. |
| Methods inherited from class com.hedgehog.HObject |
|---|
clone, compare, compareTo, copy, equals, getID, getName, hashCode, hasID, hasName, setID, setName |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.ArrayList<ObjectType> mObjectVector
protected int mObjectIndex
| Constructor Detail |
|---|
public IndexObject()
public IndexObject(java.util.ArrayList<ObjectType> objectVector,
int objectIndex)
throws java.lang.IllegalArgumentException
objectVector - Object vector.objectIndex - Object index.
java.lang.IllegalArgumentException - Thrown if the specified object index is out of range.public IndexObject(IndexObject<ObjectType> object)
object - Object to copy.| Method Detail |
|---|
public java.util.ArrayList<ObjectType> getObjectVector()
public int getObjectIndex()
public void setObjectVector(java.util.ArrayList<ObjectType> objectVector)
objectVector - New object vector.public void setObjectIndex(int objectIndex)
objectIndex - New object index.public ObjectType getObject()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||