private static final Map<String, Object> subsetAttributes(
     final CommonInfo igc, final Collection<String> keysToPreserve) {
   Map<String, Object> attributes = new HashMap<String, Object>(keysToPreserve.size());
   for (final String key : keysToPreserve) {
     if (igc.hasAttribute(key)) attributes.put(key, igc.getAttribute(key));
   }
   return attributes;
 }
Exemple #2
0
 public int getAttributeAsInt(String key, int defaultValue) {
   return commonInfo.getAttributeAsInt(key, defaultValue);
 }
Exemple #3
0
 public String getAttributeAsString(String key, String defaultValue) {
   return commonInfo.getAttributeAsString(key, defaultValue);
 }
Exemple #4
0
 public Object getAttribute(String key, Object defaultValue) {
   return commonInfo.getAttribute(key, defaultValue);
 }
Exemple #5
0
 public Object getAttribute(String key) {
   return commonInfo.getAttribute(key);
 }
Exemple #6
0
 public boolean hasAttribute(String key) {
   return commonInfo.hasAttribute(key);
 }
Exemple #7
0
 public Map<String, Object> getAttributes() {
   return commonInfo.getAttributes();
 }
Exemple #8
0
 // ---------------------------------------------------------------------------------------------------------
 //
 // get routines to access context info fields
 //
 // ---------------------------------------------------------------------------------------------------------
 public String getSource() {
   return commonInfo.getName();
 }
Exemple #9
0
 public double getLog10PError() {
   return commonInfo.getLog10PError();
 }
Exemple #10
0
 public boolean hasLog10PError() {
   return commonInfo.hasLog10PError();
 }
Exemple #11
0
 public boolean filtersWereApplied() {
   return commonInfo.filtersWereApplied();
 }
Exemple #12
0
 public boolean isNotFiltered() {
   return commonInfo.isNotFiltered();
 }
Exemple #13
0
 public Set<String> getFilters() {
   return commonInfo.getFilters();
 }
Exemple #14
0
 public Set<String> getFiltersMaybeNull() {
   return commonInfo.getFiltersMaybeNull();
 }
Exemple #15
0
 public double getAttributeAsDouble(String key, double defaultValue) {
   return commonInfo.getAttributeAsDouble(key, defaultValue);
 }
Exemple #16
0
 public boolean getAttributeAsBoolean(String key, boolean defaultValue) {
   return commonInfo.getAttributeAsBoolean(key, defaultValue);
 }
Exemple #17
0
 public double getPhredScaledQual() {
   return commonInfo.getPhredScaledQual();
 }