class MetricsImpl implements Metrics {

    public static final Metrics EMPTY_INSTANCE = new MetricsImpl(0, 0, 0, 0, 0);

    private final int pipelineReductions;
    private final int sqlWhileCount;
    private final int sqlOrderCount;
    private final int sqlSkipCount;
    private final int sqlLimitCount;

    public MetricsImpl(
        final int pipelineReductions,
        final int sqlWhileCount,
        final int sqlOrderCount,
        final int sqlSkipCount,
        final int sqlLimitCount
    ) {
        this.pipelineReductions = requireNonNegative(pipelineReductions);
        this.sqlWhileCount = requireNonNegative(sqlWhileCount);
        this.sqlOrderCount = requireNonNegative(sqlOrderCount);
        this.sqlSkipCount = requireNonNegative(sqlSkipCount);
        this.sqlLimitCount = requireNonNegative(sqlLimitCount);
    }

    @Override
    public int getPipelineReductions() {
        return pipelineReductions;
    }

    @Override
    public int getSqlWhileCount() {
        return sqlWhileCount;
    }

    @Override
    public int getSqlOrderCount() {
        return sqlOrderCount;
    }

    @Override
    public int getSqlSkipCount() {
        return sqlSkipCount;
    }

    @Override
    public int getSqlLimitCount() {
        return sqlLimitCount;
    }

    @Override
    public String toString() {
        return String.format("Metrics {pipelineReductions = %d, sqlWhileCount = %d, sqlOrderCount = %d, sqlSkipCount = %d, sqlLimitCount = %d}",
            getPipelineReductions(),
            getSqlWhileCount(),
            getSqlOrderCount(),
            getSqlSkipCount(),
            getSqlLimitCount()
        );
    }

    @Override
    public boolean equals(Object obj) {<FILL_FUNCTION_BODY>}

    @Override
    public int hashCode() {
        int hash = 33;
        hash += 33 * getPipelineReductions();
        hash += 33 * getSqlWhileCount();
        hash += 33 * getSqlOrderCount();
        hash += 33 * getSqlSkipCount();
        hash += 33 * getSqlLimitCount();
        return hash;
    }

}

        if (obj == this) {
            return true;
        }
        if (!(obj instanceof Metrics)) {
            return false;
        }
        final Metrics that = (Metrics) obj;
        return this.getPipelineReductions() == that.getPipelineReductions()
            && this.getSqlWhileCount() == that.getSqlWhileCount()
            && this.getSqlOrderCount() == that.getSqlOrderCount()
            && this.getSqlSkipCount() == that.getSqlSkipCount()
            && this.getSqlLimitCount() == that.getSqlLimitCount();
    
<no_super_class>