test_class.file: shared/src/test/java/org/eclipse/steady/shared/util/StringListTest.java
test_class.identifier: StringListTest
test_case.body: @Test
    public void testFilter() {
      final StringList list = new StringList(new String[] {"foo.BAR"});
  
      final Map<String, String> m = new HashMap<String, String>();
      m.put("foo.bar", "abc");
      m.put("john.doe", "123");
  
      // keep_matches = true
      final Map<String, String> o1 =
          list.filter(m, true, ComparisonMode.EQUALS, CaseSensitivity.CASE_SENSITIVE);
      assertTrue(!o1.containsKey("foo.bar"));
      assertTrue(!o1.containsKey("john.doe"));
  
      final Map<String, String> o3 =
          list.filter(m, true, ComparisonMode.EQUALS, CaseSensitivity.CASE_INSENSITIVE);
      assertTrue(o3.containsKey("foo.bar"));
      assertTrue(!o3.containsKey("john.doe"));
  
      // keep_matches = false
      final Map<String, String> o2 =
          list.filter(m, false, ComparisonMode.EQUALS, CaseSensitivity.CASE_SENSITIVE);
      assertTrue(o2.containsKey("foo.bar"));
      assertTrue(o2.containsKey("john.doe"));
  
      final Map<String, String> o4 =
          list.filter(m, false, ComparisonMode.EQUALS, CaseSensitivity.CASE_INSENSITIVE);
      assertTrue(!o4.containsKey("foo.bar"));
      assertTrue(o4.containsKey("john.doe"));
    }
test_case.class_method_signature: StringListTest.testFilter()
test_case.full_signature: @Test public void testFilter()
test_case.identifier: testFilter
test_case.invocations: put put filter assertTrue containsKey assertTrue containsKey filter assertTrue containsKey assertTrue containsKey filter assertTrue containsKey assertTrue containsKey filter assertTrue containsKey assertTrue containsKey
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testFilter()
focal_class.declarator: itemlist = new HashSet<String>()
focal_class.modifier: private
focal_class.original_string: private Set<String> itemlist = new HashSet<String>();
focal_class.type: Set<String>
focal_class.var_name: itemlist
focal_class.file: shared/src/main/java/org/eclipse/steady/shared/util/StringList.java
focal_class.identifier: StringList
focal_class.interfaces: implements Iterable<String>
focal_class.class_method_signature: StringList.StringList()
focal_class.full_signature: public  StringList()
focal_class.identifier: StringList
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  StringList()
focal_class.class_method_signature: StringList.StringList(String[] _itemlist)
focal_class.full_signature: public  StringList(String[] _itemlist)
focal_class.identifier: StringList
focal_class.modifiers: public
focal_class.parameters: (String[] _itemlist)
focal_class.signature:  StringList(String[] _itemlist)
focal_class.class_method_signature: StringList.addAll(String[] _itemlist)
focal_class.full_signature: public StringList addAll(String[] _itemlist)
focal_class.identifier: addAll
focal_class.modifiers: public
focal_class.parameters: (String[] _itemlist)
focal_class.return: StringList
focal_class.signature: StringList addAll(String[] _itemlist)
focal_class.class_method_signature: StringList.addAll(String[] _itemlist, boolean _trim)
focal_class.full_signature: public StringList addAll(String[] _itemlist, boolean _trim)
focal_class.identifier: addAll
focal_class.modifiers: public
focal_class.parameters: (String[] _itemlist, boolean _trim)
focal_class.return: StringList
focal_class.signature: StringList addAll(String[] _itemlist, boolean _trim)
focal_class.class_method_signature: StringList.addAll(String _itemlist, String _separator, boolean _trim)
focal_class.full_signature: public StringList addAll(String _itemlist, String _separator, boolean _trim)
focal_class.identifier: addAll
focal_class.modifiers: public
focal_class.parameters: (String _itemlist, String _separator, boolean _trim)
focal_class.return: StringList
focal_class.signature: StringList addAll(String _itemlist, String _separator, boolean _trim)
focal_class.class_method_signature: StringList.add(String _item)
focal_class.full_signature: public StringList add(String _item)
focal_class.identifier: add
focal_class.modifiers: public
focal_class.parameters: (String _item)
focal_class.return: StringList
focal_class.signature: StringList add(String _item)
focal_class.class_method_signature: StringList.add(String _item, boolean _trim)
focal_class.full_signature: public StringList add(String _item, boolean _trim)
focal_class.identifier: add
focal_class.modifiers: public
focal_class.parameters: (String _item, boolean _trim)
focal_class.return: StringList
focal_class.signature: StringList add(String _item, boolean _trim)
focal_class.class_method_signature: StringList.iterator()
focal_class.full_signature: public Iterator<String> iterator()
focal_class.identifier: iterator
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Iterator<String>
focal_class.signature: Iterator<String> iterator()
focal_class.class_method_signature: StringList.contains(String _value)
focal_class.full_signature: public boolean contains(String _value)
focal_class.identifier: contains
focal_class.modifiers: public
focal_class.parameters: (String _value)
focal_class.return: boolean
focal_class.signature: boolean contains(String _value)
focal_class.class_method_signature: StringList.contains(String _value, ComparisonMode _mode, CaseSensitivity _case_sensitivity)
focal_class.full_signature: public boolean contains(String _value, ComparisonMode _mode, CaseSensitivity _case_sensitivity)
focal_class.identifier: contains
focal_class.modifiers: public
focal_class.parameters: (String _value, ComparisonMode _mode, CaseSensitivity _case_sensitivity)
focal_class.return: boolean
focal_class.signature: boolean contains(String _value, ComparisonMode _mode, CaseSensitivity _case_sensitivity)
focal_class.class_method_signature: StringList.isEmpty()
focal_class.full_signature: public boolean isEmpty()
focal_class.identifier: isEmpty
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isEmpty()
focal_class.class_method_signature: StringList.toString()
focal_class.full_signature: public String toString()
focal_class.identifier: toString
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: StringList.toString(String _sep)
focal_class.full_signature: public String toString(String _sep)
focal_class.identifier: toString
focal_class.modifiers: public
focal_class.parameters: (String _sep)
focal_class.return: String
focal_class.signature: String toString(String _sep)
focal_class.class_method_signature: StringList.filter(
        Map<String, String> _in,
        boolean _keep_matches,
        ComparisonMode _mode,
        CaseSensitivity _case_sensitivity)
focal_class.full_signature: public HashMap<String, String> filter(
        Map<String, String> _in,
        boolean _keep_matches,
        ComparisonMode _mode,
        CaseSensitivity _case_sensitivity)
focal_class.identifier: filter
focal_class.modifiers: public
focal_class.parameters: (
        Map<String, String> _in,
        boolean _keep_matches,
        ComparisonMode _mode,
        CaseSensitivity _case_sensitivity)
focal_class.return: HashMap<String, String>
focal_class.signature: HashMap<String, String> filter(
        Map<String, String> _in,
        boolean _keep_matches,
        ComparisonMode _mode,
        CaseSensitivity _case_sensitivity)
focal_method.body: public HashMap<String, String> filter(
        Map<String, String> _in,
        boolean _keep_matches,
        ComparisonMode _mode,
        CaseSensitivity _case_sensitivity) {
      final HashMap<String, String> out = new HashMap<String, String>();
      for (Map.Entry<String, String> e : _in.entrySet()) {
        if (this.contains(e.getKey(), _mode, _case_sensitivity)) {
          if (_keep_matches) out.put(e.getKey(), e.getValue());
        } else if (!_keep_matches) {
          out.put(e.getKey(), e.getValue());
        }
      }
      return out;
    }
focal_method.class_method_signature: StringList.filter(
        Map<String, String> _in,
        boolean _keep_matches,
        ComparisonMode _mode,
        CaseSensitivity _case_sensitivity)
focal_method.full_signature: public HashMap<String, String> filter(
        Map<String, String> _in,
        boolean _keep_matches,
        ComparisonMode _mode,
        CaseSensitivity _case_sensitivity)
focal_method.identifier: filter
focal_method.invocations: entrySet contains getKey put getKey getValue put getKey getValue
focal_method.modifiers: public
focal_method.parameters: (
        Map<String, String> _in,
        boolean _keep_matches,
        ComparisonMode _mode,
        CaseSensitivity _case_sensitivity)
focal_method.return: HashMap<String, String>
focal_method.signature: HashMap<String, String> filter(
        Map<String, String> _in,
        boolean _keep_matches,
        ComparisonMode _mode,
        CaseSensitivity _case_sensitivity)