@Test public void testContains() { final String[] itemlist = new String[] {"foo.bar"}; final StringList blacklist = new StringList(itemlist); assertTrue(blacklist.contains("foo.bar")); assertTrue(!blacklist.contains("FOO.bar")); assertTrue( blacklist.contains("FOO.bar", ComparisonMode.EQUALS, CaseSensitivity.CASE_INSENSITIVE)); assertTrue(!blacklist.contains("top.down")); final StringList whitelist = new StringList(itemlist); assertTrue( whitelist.contains( "foo.bar.Test", ComparisonMode.STARTSWITH, CaseSensitivity.CASE_SENSITIVE)); assertTrue( whitelist.contains( "foo.BAR.Test", ComparisonMode.STARTSWITH, CaseSensitivity.CASE_INSENSITIVE)); assertTrue( !whitelist.contains( "foo.BAR.Test", ComparisonMode.STARTSWITH, CaseSensitivity.CASE_SENSITIVE)); assertTrue( !whitelist.contains( "top.down.Test", ComparisonMode.STARTSWITH, CaseSensitivity.CASE_SENSITIVE)); final StringList jar_bl = new StringList(new String[] {"vulas-core-.*\\.jar"}); assertTrue( jar_bl.contains( "vulas-core-1.1.0-SNAPSHOT-jar-with-dependencies.jar", ComparisonMode.PATTERN, CaseSensitivity.CASE_INSENSITIVE)); assertTrue( !jar_bl.contains( "commons-fileupload-1.2.1.jar", ComparisonMode.PATTERN, CaseSensitivity.CASE_INSENSITIVE)); }
public boolean contains(String _value) { return this.contains(_value, ComparisonMode.EQUALS, CaseSensitivity.CASE_SENSITIVE); }
StringList implements Iterable<String> { public boolean contains(String _value) { return this.contains(_value, ComparisonMode.EQUALS, CaseSensitivity.CASE_SENSITIVE); } }
StringList implements Iterable<String> { public boolean contains(String _value) { return this.contains(_value, ComparisonMode.EQUALS, CaseSensitivity.CASE_SENSITIVE); } StringList();  StringList(String[] _itemlist); }
StringList implements Iterable<String> { public boolean contains(String _value) { return this.contains(_value, ComparisonMode.EQUALS, CaseSensitivity.CASE_SENSITIVE); } StringList();  StringList(String[] _itemlist); StringList addAll(String[] _itemlist); StringList addAll(String[] _itemlist, boolean _trim); StringList addAll(String _itemlist, String _separator, boolean _trim); StringList add(String _item); StringList add(String _item, boolean _trim); Iterator<String> iterator(); boolean contains(String _value); boolean contains(String _value, ComparisonMode _mode, CaseSensitivity _case_sensitivity); boolean isEmpty(); String toString(); String toString(String _sep); HashMap<String, String> filter(
      Map<String, String> _in,
      boolean _keep_matches,
      ComparisonMode _mode,
      CaseSensitivity _case_sensitivity); }
StringList implements Iterable<String> { public boolean contains(String _value) { return this.contains(_value, ComparisonMode.EQUALS, CaseSensitivity.CASE_SENSITIVE); } StringList();  StringList(String[] _itemlist); StringList addAll(String[] _itemlist); StringList addAll(String[] _itemlist, boolean _trim); StringList addAll(String _itemlist, String _separator, boolean _trim); StringList add(String _item); StringList add(String _item, boolean _trim); Iterator<String> iterator(); boolean contains(String _value); boolean contains(String _value, ComparisonMode _mode, CaseSensitivity _case_sensitivity); boolean isEmpty(); String toString(); String toString(String _sep); HashMap<String, String> filter(
      Map<String, String> _in,
      boolean _keep_matches,
      ComparisonMode _mode,
      CaseSensitivity _case_sensitivity);  }