|
The Octet Molecular Representation Framework v0.8.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A Sequence is an ordered, immutable group of objects of the same
class in which null is not permitted. For convenience,
Sequence uses the method naming convention in java.util.List,
although Sequence does not inherit that interface.
| Method Summary | |
boolean |
contains(java.lang.Object o)
Returns true if the Object can be found in this
Sequence. |
java.lang.Object |
get(int index)
Returns the Object at the specified position in this
Sequence. |
java.lang.Class |
getElementClass()
Returns the Class of the Objects contained in this
Sequence. |
int |
indexOf(java.lang.Object o)
Returns the index of the specified Object, or -1 if it could not
be found. |
java.util.Iterator |
iterator()
Returns an Iterator over the objects in this Sequence. |
boolean |
objectsImplement(java.lang.Class classInterface)
Returns true if the Objects in this Sequence
implement classInterface, or false otherwise. |
int |
size()
Returns the number of objects in this Sequence. |
java.lang.Object[] |
toArray()
Returns the Objects of this sequence as an array. |
| Method Detail |
public boolean contains(java.lang.Object o)
true if the Object can be found in this
Sequence.
o - the Object to find
true if o can be found, or false
otherwisepublic int size()
Sequence.
Sequencepublic int indexOf(java.lang.Object o)
Object, or -1 if it could not
be found.
o - the Object to find
true if o could be found, or false
otherwisepublic java.lang.Object get(int index)
Object at the specified position in this
Sequence.
index - the index to query
index
java.lang.IndexOutOfBoundsException - if the index is out of range (index < 0 || index >= size())public java.util.Iterator iterator()
Iterator over the objects in this Sequence.
Iterator over the objects in this Sequence
public java.lang.Object[] toArray()
Objects of this sequence as an array. This array
can be modified without changing the state of this Sequence.
The ordering in the returned array is identical to the ordering in
iterator().
Objects of this sequence as an arraypublic java.lang.Class getElementClass()
Class of the Objects contained in this
Sequence.
Class of the Objects contained in this
Sequencepublic boolean objectsImplement(java.lang.Class classInterface)
true if the Objects in this Sequence
implement classInterface, or false otherwise.
classInterface - the interface to query Objects against
true if the Objects in this Sequence
implement classInterface, or false otherwise
|
The Octet Molecular Representation Framework v0.8.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||