mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-15 02:17:18 +01:00
80 lines
2.4 KiB
Java
80 lines
2.4 KiB
Java
package com.google.common.base;
|
|
|
|
import com.google.common.annotations.GwtIncompatible;
|
|
import com.google.common.annotations.J2ktIncompatible;
|
|
import java.io.Serializable;
|
|
import java.util.regex.Matcher;
|
|
import java.util.regex.Pattern;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@GwtIncompatible
|
|
/* loaded from: classes8.dex */
|
|
final class JdkPattern extends CommonPattern implements Serializable {
|
|
|
|
@J2ktIncompatible
|
|
private static final long serialVersionUID = 0;
|
|
private final Pattern pattern;
|
|
|
|
public JdkPattern(Pattern pattern) {
|
|
this.pattern = (Pattern) Preconditions.checkNotNull(pattern);
|
|
}
|
|
|
|
@Override // com.google.common.base.CommonPattern
|
|
public int flags() {
|
|
return this.pattern.flags();
|
|
}
|
|
|
|
@Override // com.google.common.base.CommonPattern
|
|
public CommonMatcher matcher(CharSequence charSequence) {
|
|
return new JdkMatcher(this.pattern.matcher(charSequence));
|
|
}
|
|
|
|
@Override // com.google.common.base.CommonPattern
|
|
public String pattern() {
|
|
return this.pattern.pattern();
|
|
}
|
|
|
|
@Override // com.google.common.base.CommonPattern
|
|
public String toString() {
|
|
return this.pattern.toString();
|
|
}
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
public static final class JdkMatcher extends CommonMatcher {
|
|
final Matcher matcher;
|
|
|
|
public JdkMatcher(Matcher matcher) {
|
|
this.matcher = (Matcher) Preconditions.checkNotNull(matcher);
|
|
}
|
|
|
|
@Override // com.google.common.base.CommonMatcher
|
|
public int end() {
|
|
return this.matcher.end();
|
|
}
|
|
|
|
@Override // com.google.common.base.CommonMatcher
|
|
public boolean find() {
|
|
return this.matcher.find();
|
|
}
|
|
|
|
@Override // com.google.common.base.CommonMatcher
|
|
public boolean matches() {
|
|
return this.matcher.matches();
|
|
}
|
|
|
|
@Override // com.google.common.base.CommonMatcher
|
|
public String replaceAll(String str) {
|
|
return this.matcher.replaceAll(str);
|
|
}
|
|
|
|
@Override // com.google.common.base.CommonMatcher
|
|
public int start() {
|
|
return this.matcher.start();
|
|
}
|
|
|
|
@Override // com.google.common.base.CommonMatcher
|
|
public boolean find(int i) {
|
|
return this.matcher.find(i);
|
|
}
|
|
}
|
|
}
|