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;
 }
Example #2
0
 public int getAttributeAsInt(String key, int defaultValue) {
   return commonInfo.getAttributeAsInt(key, defaultValue);
 }
Example #3
0
 public String getAttributeAsString(String key, String defaultValue) {
   return commonInfo.getAttributeAsString(key, defaultValue);
 }
Example #4
0
 public Object getAttribute(String key, Object defaultValue) {
   return commonInfo.getAttribute(key, defaultValue);
 }
Example #5
0
 public Object getAttribute(String key) {
   return commonInfo.getAttribute(key);
 }
Example #6
0
 public boolean hasAttribute(String key) {
   return commonInfo.hasAttribute(key);
 }
Example #7
0
 public Map<String, Object> getAttributes() {
   return commonInfo.getAttributes();
 }
Example #8
0
 // ---------------------------------------------------------------------------------------------------------
 //
 // get routines to access context info fields
 //
 // ---------------------------------------------------------------------------------------------------------
 public String getSource() {
   return commonInfo.getName();
 }
Example #9
0
 public double getLog10PError() {
   return commonInfo.getLog10PError();
 }
Example #10
0
 public boolean hasLog10PError() {
   return commonInfo.hasLog10PError();
 }
Example #11
0
 public boolean filtersWereApplied() {
   return commonInfo.filtersWereApplied();
 }
Example #12
0
 public boolean isNotFiltered() {
   return commonInfo.isNotFiltered();
 }
Example #13
0
 public Set<String> getFilters() {
   return commonInfo.getFilters();
 }
Example #14
0
 public Set<String> getFiltersMaybeNull() {
   return commonInfo.getFiltersMaybeNull();
 }
Example #15
0
 public double getAttributeAsDouble(String key, double defaultValue) {
   return commonInfo.getAttributeAsDouble(key, defaultValue);
 }
Example #16
0
 public boolean getAttributeAsBoolean(String key, boolean defaultValue) {
   return commonInfo.getAttributeAsBoolean(key, defaultValue);
 }
Example #17
0
 public double getPhredScaledQual() {
   return commonInfo.getPhredScaledQual();
 }