Class SingleCompoundSequenceReader<C extends Compound>

java.lang.Object
org.biojava.nbio.core.sequence.storage.SingleCompoundSequenceReader<C>
All Implemented Interfaces:
Iterable<C>, Accessioned, ProxySequenceReader<C>, Sequence<C>, SequenceReader<C>

public class SingleCompoundSequenceReader<C extends Compound> extends Object implements ProxySequenceReader<C>
An implementation of the SequenceReader interface which for every call will return only 1 compound (given to it during construction; a String is also valid but will require a CompoundSet). The idea is to represent large runs of a single compound without the memory footprint of storing these compounds e.g. a run of 10KB of Ns in a DNASequence.
Author:
ayates