T - public interface Index<T extends IndexElement> extends Serializable
| Modifier and Type | Method and Description |
|---|---|
void |
add(T indexElement)
Add a new index element to this index.
|
T |
getById(String id)
Retrieves a value by the textual ID of a scan.
|
T |
getByNum(int num)
Retrieves a value by the internal scan number.
|
T |
getByRawNum(int num)
Retrieves a value by the raw scan number from the original file.
|
Map<String,T> |
getMapById()
A mapping from textual scan IDs.
|
NavigableMap<Integer,T> |
getMapByNum()
A mapping from internal scan numbers.
|
NavigableMap<Integer,T> |
getMapByRawNum()
A mapping from original raw scan numbers (or "spectrum index" values in mzML).
|
int |
size()
Current size of the index.
|
void add(T indexElement)
indexElement - T getByNum(int num)
num - T getByRawNum(int num)
num - raw scan number from the original fileT getById(String id)
id - int size()
NavigableMap<Integer,T> getMapByNum()
NavigableMap<Integer,T> getMapByRawNum()
Map<String,T> getMapById()
IndexElement.getRawNumber().Copyright © 2017. All rights reserved.