public Object getAttribute(String key, Object defaultValue) { return commonInfo.getAttribute(key, defaultValue); }
public String getAttributeAsString(String key, String defaultValue) { return commonInfo.getAttributeAsString(key, defaultValue); } public int getAttributeAsInt(String key, int defaultValue) { return commonInfo.getAttributeAsInt(key, defaultValue); }
public Map<String, Object> getAttributes() { return commonInfo.getAttributes(); } public boolean hasAttribute(String key) { return commonInfo.hasAttribute(key); }
public void setAttributes(Map<String, ?> map) { clearAttributes(); putAttributes(map); }
public boolean hasAttribute(String key) { return commonInfo.hasAttribute(key); } public Object getAttribute(String key) { return commonInfo.getAttribute(key); }
private final static Map<String, Object> subsetAttributes(final CommonInfo igc, final Collection<String> keysToPreserve) { Map<String, Object> attributes = new HashMap<>(keysToPreserve.size()); for ( final String key : keysToPreserve ) { if ( igc.hasAttribute(key) ) attributes.put(key, igc.getAttribute(key)); } return attributes; }
public void addFilters(Collection<String> filters) { if ( filters == null ) throw new IllegalArgumentException("BUG: Attempting to add null filters at" + this); for ( String f : filters ) addFilter(f); }
public enum Validation { ALLELES, GENOTYPES }
public boolean filtersWereApplied() { return commonInfo.filtersWereApplied(); } public boolean hasLog10PError() { return commonInfo.hasLog10PError(); }
public double getAttributeAsDouble(String key, double defaultValue) { return commonInfo.getAttributeAsDouble(key, defaultValue); } public boolean getAttributeAsBoolean(String key, boolean defaultValue) { return commonInfo.getAttributeAsBoolean(key, defaultValue); }
public boolean getAttributeAsBoolean(String key, boolean defaultValue) { return commonInfo.getAttributeAsBoolean(key, defaultValue); } /** returns the value as an empty list if the key was not found,
public boolean hasAttribute(String key) { return commonInfo.hasAttribute(key); } public Object getAttribute(String key) { return commonInfo.getAttribute(key); }
public void setAttributes(Map<String, ?> map) { clearAttributes(); putAttributes(map); }
public void addFilters(Collection<String> filters) { if ( filters == null ) throw new IllegalArgumentException("BUG: Attempting to add null filters at" + this); for ( String f : filters ) addFilter(f); }
public enum Validation { ALLELES, GENOTYPES }
public boolean filtersWereApplied() { return commonInfo.filtersWereApplied(); } public boolean hasLog10PError() { return commonInfo.hasLog10PError(); }
public double getAttributeAsDouble(String key, double defaultValue) { return commonInfo.getAttributeAsDouble(key, defaultValue); } public boolean getAttributeAsBoolean(String key, boolean defaultValue) { return commonInfo.getAttributeAsBoolean(key, defaultValue); }
public boolean getAttributeAsBoolean(String key, boolean defaultValue) { return commonInfo.getAttributeAsBoolean(key, defaultValue); }
public Object getAttribute(String key, Object defaultValue) { return commonInfo.getAttribute(key, defaultValue); }
public boolean hasAttribute(String key) { return commonInfo.hasAttribute(key); } public Object getAttribute(String key) { return commonInfo.getAttribute(key); }