Constructor and Description |
---|
GroupIterator(Structure struct)
Constructs a GroupIterator object over all models
|
GroupIterator(Structure struct,
int modelNr)
Constructs a GroupIterator object over a specific model
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates and returns a copy of this object.
|
Chain |
getCurrentChain()
Get the current Chain.
|
int |
getCurrentModel()
Get the model number of the current model.
|
boolean |
hasNext()
is there a group after the current one in the structure?
|
Group |
next()
get next Group.
|
void |
remove()
does nothing .
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public GroupIterator(Structure struct)
struct
- a Structure objectpublic GroupIterator(Structure struct, int modelNr)
struct
- a Structure objectpublic boolean hasNext()
public int getCurrentModel()
public Chain getCurrentChain()
public Group next() throws NoSuchElementException
next
in interface Iterator<Group>
NoSuchElementException
- ...Copyright © 2000–2018 BioJava. All rights reserved.