public class CachingSequenceDB extends SequenceDBWrapper
SequenceDBWrapper.SequencesForwarder
SEQUENCES
Constructor and Description |
---|
CachingSequenceDB(SequenceDB parent)
Create a new CachingSequenceDB that caches the sequences in parent.
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Get the name of this sequence database.
|
Sequence |
getSequence(String id)
Retrieve a single sequence by its id.
|
Set |
ids()
Get an immutable set of all of the IDs in the database.
|
getChangeSupport, getParent
addSequence, filter, removeSequence, sequenceIterator
addChangeListener, addChangeListener, generateChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addChangeListener, addChangeListener, isUnchanging, removeChangeListener, removeChangeListener
public CachingSequenceDB(SequenceDB parent)
parent
- the SequenceDB to cachepublic String getName()
SequenceDBLite
public Sequence getSequence(String id) throws BioException
SequenceDBLite
id
- the id to retrieve byIllegalIDException
- if the database doesn't know about the idBioException
- if there was a failure in retrieving the sequencepublic Set ids()
SequenceDB
Copyright © 2014 BioJava. All rights reserved.