Serializable
public final class CommonInfo extends Object implements Serializable
Modifier and Type | Field | Description |
---|---|---|
static double |
NO_LOG10_PERROR |
|
static long |
serialVersionUID |
Constructor | Description |
---|---|
CommonInfo(String name,
double log10PError,
Set<String> filters,
Map<String,Object> attributes) |
public static final long serialVersionUID
public static final double NO_LOG10_PERROR
public String getName()
public void setName(String name)
name
- the name associated with this informationpublic boolean filtersWereApplied()
public boolean isFiltered()
public boolean isNotFiltered()
public void addFilter(String filter)
public void addFilters(Collection<String> filters)
public boolean hasLog10PError()
public double getLog10PError()
public double getPhredScaledQual()
public void setLog10PError(double log10PError)
public void clearAttributes()
public void removeAttribute(String key)
public boolean hasAttribute(String key)
public int getNumAttributes()
public Object getAttribute(String key)
key
- the attribute keypublic List<Object> getAttributeAsList(String key)
Collections.singletonList(Object)
if
there is only one value; a list containing the values if the value is a List
or array.public List<String> getAttributeAsStringList(String key, String defaultValue)
public List<Double> getAttributeAsDoubleList(String key, Double defaultValue)
public int getAttributeAsInt(String key, int defaultValue)
public double getAttributeAsDouble(String key, double defaultValue)
public boolean getAttributeAsBoolean(String key, boolean defaultValue)