Home | History | Annotate | Download | only in filefilter

Lines Matching refs:names

50     private final String[] names;
75 this.names = new String[] {name};
80 * Constructs a new case-sensitive name file filter for an array of names.
85 * @param names the names to allow, must not be null
86 * @throws IllegalArgumentException if the names array is null
88 public NameFileFilter(String[] names) {
89 this(names, null);
93 * Constructs a new name file filter for an array of names specifying case-sensitivity.
98 * @param names the names to allow, must not be null
100 * @throws IllegalArgumentException if the names array is null
102 public NameFileFilter(String[] names, IOCase caseSensitivity) {
103 if (names == null) {
104 throw new IllegalArgumentException("The array of names must not be null");
106 this.names = names;
111 * Constructs a new case-sensitive name file filter for a list of names.
113 * @param names the names to allow, must not be null
117 public NameFileFilter(List<String> names) {
118 this(names, null);
122 * Constructs a new name file filter for a list of names specifying case-sensitivity.
124 * @param names the names to allow, must not be null
129 public NameFileFilter(List<String> names, IOCase caseSensitivity) {
130 if (names == null) {
131 throw new IllegalArgumentException("The list of names must not be null");
133 this.names = names.toArray(new String[names.size()]);
147 for (int i = 0; i < this.names.length; i++) {
148 if (caseSensitivity.checkEquals(name, names[i])) {
164 for (int i = 0; i < names.length; i++) {
165 if (caseSensitivity.checkEquals(name, names[i])) {
182 if (names != null) {
183 for (int i = 0; i < names.length; i++) {
187 buffer.append(names[i]);