Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## de.jstacs.data.bioJava
Class SimpleSequenceIterator

    java.lang.Object
      de.jstacs.data.bioJava.SimpleSequenceIterator

All Implemented Interfaces:
  SequenceIterator

    public class SimpleSequenceIterator

extends Object
implements SequenceIterator

Class that implements the `SequenceIterator` interface of BioJava in a simple way, backed by an array of `Sequence`s.

Author:
  Jan Grau

Constructor Summary
`SimpleSequenceIterator(Sequence... seqs)` Creates a new `SimpleSequenceIterator` from an array of `Sequence`s.

Method Summary
`boolean` | `hasNext()`
`Sequence` | `nextSequence()`
`void` | `reset()` Provides the possibility to reset and afterwards reuse this iterator.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### SimpleSequenceIterator

    public SimpleSequenceIterator(Sequence... seqs)

  Creates a new `SimpleSequenceIterator` from an array of `Sequence`s.

  Parameters:
    `seqs` - the array of `Sequence`s

Method Detail

### hasNext

    public boolean hasNext()

  Specified by:
    `hasNext` in interface `SequenceIterator`

### nextSequence

    public Sequence nextSequence()
                          throws NoSuchElementException,
                                 BioException

  Specified by:
    `nextSequence` in interface `SequenceIterator`
  Throws:
    `NoSuchElementException`
    `BioException`

### reset

    public void reset()

  Provides the possibility to reset and afterwards reuse this iterator.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD