62 lines
1.7 KiB
Java
62 lines
1.7 KiB
Java
|
package o;
|
||
|
|
||
|
import java.io.File;
|
||
|
import java.io.Serializable;
|
||
|
|
||
|
/* renamed from: o.gjw, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes6.dex */
|
||
|
public final class C15202gjw extends AbstractC15194gjo implements Serializable {
|
||
|
private final String[] c;
|
||
|
private final EnumC15197gjr d;
|
||
|
|
||
|
public C15202gjw(String str) {
|
||
|
this(str, (byte) 0);
|
||
|
}
|
||
|
|
||
|
private C15202gjw(String str, byte b) {
|
||
|
if (str == null) {
|
||
|
throw new IllegalArgumentException("The wildcard must not be null");
|
||
|
}
|
||
|
this.c = new String[]{str};
|
||
|
this.d = EnumC15197gjr.SENSITIVE;
|
||
|
}
|
||
|
|
||
|
@Override // o.AbstractC15194gjo, o.InterfaceC15199gjt, java.io.FileFilter
|
||
|
public final boolean accept(File file) {
|
||
|
String name = file.getName();
|
||
|
for (String str : this.c) {
|
||
|
if (this.d.d(name, str)) {
|
||
|
return true;
|
||
|
}
|
||
|
}
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
@Override // o.AbstractC15194gjo, o.InterfaceC15199gjt, java.io.FilenameFilter
|
||
|
public final boolean accept(File file, String str) {
|
||
|
for (String str2 : this.c) {
|
||
|
if (this.d.d(str, str2)) {
|
||
|
return true;
|
||
|
}
|
||
|
}
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
@Override // o.AbstractC15194gjo
|
||
|
public final String toString() {
|
||
|
StringBuilder sb = new StringBuilder();
|
||
|
sb.append(super.toString());
|
||
|
sb.append("(");
|
||
|
if (this.c != null) {
|
||
|
for (int i = 0; i < this.c.length; i++) {
|
||
|
if (i > 0) {
|
||
|
sb.append(",");
|
||
|
}
|
||
|
sb.append(this.c[i]);
|
||
|
}
|
||
|
}
|
||
|
sb.append(")");
|
||
|
return sb.toString();
|
||
|
}
|
||
|
}
|