@Test public void testConvertFromKeyValuePairs() { KeyValuePairCollection elements = new KeyValuePairCollection(); elements.add(new KeyValuePair("test", "value")); assertNotNull(convertFromKeyValuePairs(elements)); assertTrue(convertFromKeyValuePairs(elements).contains(new MetadataElement("test", ""))); }
public static Set<MetadataElement> convertFromKeyValuePairs(KeyValuePairBag bag) { final HashSet<MetadataElement> set = new HashSet<>(); for (KeyValuePair e : bag) { set.add(new MetadataElement(e)); } return set; }
MetadataHelper { public static Set<MetadataElement> convertFromKeyValuePairs(KeyValuePairBag bag) { final HashSet<MetadataElement> set = new HashSet<>(); for (KeyValuePair e : bag) { set.add(new MetadataElement(e)); } return set; } }
MetadataHelper { public static Set<MetadataElement> convertFromKeyValuePairs(KeyValuePairBag bag) { final HashSet<MetadataElement> set = new HashSet<>(); for (KeyValuePair e : bag) { set.add(new MetadataElement(e)); } return set; }  }
MetadataHelper { public static Set<MetadataElement> convertFromKeyValuePairs(KeyValuePairBag bag) { final HashSet<MetadataElement> set = new HashSet<>(); for (KeyValuePair e : bag) { set.add(new MetadataElement(e)); } return set; }  static Properties convertToProperties(Collection<MetadataElement> s); static Set<MetadataElement> convertFromProperties(Properties p); static Set<MetadataElement> convertFromKeyValuePairs(KeyValuePairBag bag); static Set<MetadataElement> metadataFromMatchGroups(MatchResult matchResult, List<String> metadataKeys); }
MetadataHelper { public static Set<MetadataElement> convertFromKeyValuePairs(KeyValuePairBag bag) { final HashSet<MetadataElement> set = new HashSet<>(); for (KeyValuePair e : bag) { set.add(new MetadataElement(e)); } return set; }  static Properties convertToProperties(Collection<MetadataElement> s); static Set<MetadataElement> convertFromProperties(Properties p); static Set<MetadataElement> convertFromKeyValuePairs(KeyValuePairBag bag); static Set<MetadataElement> metadataFromMatchGroups(MatchResult matchResult, List<String> metadataKeys);  }