public class MappedSequences<K>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static SimpleList<Sequence> |
emptyList |
private java.util.Map<K,SequenceCollection> |
map |
| Constructor and Description |
|---|
MappedSequences() |
| Modifier and Type | Method and Description |
|---|---|
void |
addSequence(K key,
Sequence seq)
Adds a sequence to the set of sequences associated with the given key.
|
java.util.Set<Sequence> |
getAllSequences()
Returns all sequences as the union of all of the sequence collections.
|
SimpleList<Sequence> |
getSequences(K key,
Type desiredType)
Returns the set of sequences (as a list) that are associated with the given key and create
values of the desiredType.
|
private java.util.Map<K,SequenceCollection> map
private static final SimpleList<Sequence> emptyList
public void addSequence(K key, Sequence seq)
key - the key valueseq - the sequencepublic SimpleList<Sequence> getSequences(K key, Type desiredType)
key - the key valuedesiredType - the query typepublic java.util.Set<Sequence> getAllSequences()