package com.github.mustachejava.reflect.guards;

import com.github.mustachejava.reflect.Guard;
import java.util.List;

/* JADX INFO: loaded from: classes.dex */
public class DotGuard implements Guard {
    private final Class classGuard;
    private final String lookup;
    private final int scopeIndex;

    @Override // com.github.mustachejava.reflect.Guard
    public boolean apply(List<Object> list) {
        return true;
    }

    public DotGuard(String str, int i, Object obj) {
        this.lookup = str;
        this.scopeIndex = i;
        this.classGuard = obj.getClass();
    }

    public int hashCode() {
        return (((this.lookup.hashCode() * 43) + this.scopeIndex) * 43) + this.classGuard.hashCode();
    }

    public boolean equals(Object obj) {
        if (!(obj instanceof DotGuard)) {
            return false;
        }
        DotGuard dotGuard = (DotGuard) obj;
        return this.scopeIndex == dotGuard.scopeIndex && this.lookup.equals(dotGuard.lookup) && this.classGuard.equals(dotGuard.classGuard);
    }

    public String toString() {
        return "[DotGuard: " + this.lookup + " " + this.scopeIndex + " " + this.classGuard.getName() + "]";
    }
}
