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

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