public WildcardFileFilter(String[] wildcards,IOCase caseSensitivity){
  if (wildcards == null) {
    throw new IllegalArgumentException("The wildcard array must not be null");
  }
  this.wildcards=new String[wildcards.length];
  System.arraycopy(wildcards,0,this.wildcards,0,wildcards.length);
  this.caseSensitivity=caseSensitivity == null ? IOCase.SENSITIVE : caseSensitivity;
}

public WildcardFileFilter ( String [ ] wildcards , IOCase caseSensitivity ) { if ( wildcards == null ) { throw new IllegalArgumentException ( "The wildcard array must not be null" ) ; } this . wildcards = new String [ wildcards . length ] ; System . arraycopy ( wildcards , 0 , this . wildcards , 0 , wildcards . length ) ; this . caseSensitivity = caseSensitivity == null ? IOCase . SENSITIVE : caseSensitivity ; }
construct a new wildcard filter for an array of wildcards specifying case - sensitivity . < p > the array is not cloned , so could be changed after constructing the instance . this would be inadvisable however .
