|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.zig_project.gpl.common.enumerations.ArrayEnum
Wrapper class for an array of Objects, and allows for them to be enumerated over using the Enumeration interface.
Field Summary | |
protected Object[] |
entries
|
protected int |
index
|
protected int |
term
|
Constructor Summary | |
ArrayEnum(Object[] o)
Constructs an ArrayEnum. |
|
ArrayEnum(Object[] o,
int start)
Constructs an ArrayEnum. |
|
ArrayEnum(Object[] o,
int start,
int end)
Constructs an ArrayEnum |
Method Summary | |
int |
available()
Determines the current number of valid elements which the Enumeration can currently Enumerate over. |
void |
copyInto(Object[] targ,
int off)
Copies all of the elements in this Enumeration into the specified array. |
void |
copyInto(Object[] targ,
int off,
int len)
Enumerates over len elements of this Enumeration, copying them into the specified array. |
protected void |
copyIntoRsvd(Object[] targ,
int off,
int len)
Reserved internal method to enumerate over elements in this Enumeration, copying them into the target array. |
boolean |
hasMoreElements()
Determines if the current Enumeration currently has any more elements to enumerate over. |
Object |
nextElement()
Moves the position of this Enumeration to the next element and returns it. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected final Object[] entries
protected int index
protected final int term
Constructor Detail |
public ArrayEnum(Object[] o, int start, int end)
o
- the array containing Objectsstart
- initial index to useend
- the last valid index in the
array, exclusivepublic ArrayEnum(Object[] o, int start)
o
- the array containing Objectsstart
- the first index from which to
start the enum in the array.public ArrayEnum(Object[] o)
o
- the array containing ObjectsMethod Detail |
public Object nextElement()
nextElement
in interface Enumeration
public boolean hasMoreElements()
hasMoreElements
in interface Enumeration
public int available()
public void copyInto(Object[] targ, int off)
targ
- the array to copy elements intooff
- the offset within the target array to
start copying elementspublic final void copyInto(Object[] targ, int off, int len)
targ
- the array to copy elements intooff
- the offset within the target array to
start copying elementslen
- the number of elements to copyprotected void copyIntoRsvd(Object[] targ, int off, int len)
targ
- the array to copy elements intooff
- the offset within the target array to
start copying elementslen
- the number of elements to copy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |