public class FeaturesMap extends Object
Modifier and Type | Field and Description |
---|---|
static int |
currentVersion
Current version of the features.
|
Constructor and Description |
---|
FeaturesMap()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addFeature(Ms2pipFeature ms2pipFeature)
Adds a feature to the map.
|
Set<String> |
getCategories()
Returns the different categories of the features in this map.
|
Ms2pipFeature[] |
getFeatures(String category)
Returns the features in the map for the given category.
|
int |
getnFeatures()
Returns the number of features in the map.
|
String[] |
getSortedFeaturesList()
Returns a sorted list of features categories.
|
int |
getVersion()
Returns the version of the features used to create the map.
|
public static final int currentVersion
public int getVersion()
public void addFeature(Ms2pipFeature ms2pipFeature)
ms2pipFeature
- the feature to add.public Set<String> getCategories()
public String[] getSortedFeaturesList()
public Ms2pipFeature[] getFeatures(String category)
category
- the category.public int getnFeatures()
Copyright © 2018. All rights reserved.