package com.github.mustachejava;

import java.util.Objects;

/* JADX INFO: loaded from: classes.dex */
public final class TemplateContext {
    private final String em;
    private final String file;
    private final int line;
    private final String sm;
    private final boolean startOfLine;

    public TemplateContext(String str, String str2, String str3, int i, boolean z) {
        this.sm = str;
        this.em = str2;
        this.file = str3;
        this.line = i;
        this.startOfLine = z;
    }

    public boolean startOfLine() {
        return this.startOfLine;
    }

    public String startChars() {
        return this.sm;
    }

    public String endChars() {
        return this.em;
    }

    public String file() {
        return this.file;
    }

    public int line() {
        return this.line;
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }
        TemplateContext templateContext = (TemplateContext) obj;
        return this.line == templateContext.line && Objects.equals(this.em, templateContext.em) && Objects.equals(this.file, templateContext.file) && Objects.equals(this.sm, templateContext.sm);
    }

    public int hashCode() {
        String str = this.sm;
        int iHashCode = (str != null ? str.hashCode() : 0) * 31;
        String str2 = this.em;
        int iHashCode2 = (iHashCode + (str2 != null ? str2.hashCode() : 0)) * 31;
        String str3 = this.file;
        return ((iHashCode2 + (str3 != null ? str3.hashCode() : 0)) * 31) + this.line;
    }

    public String toString() {
        return "[" + this.file + ":" + this.line + "]";
    }
}
