All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.fge.grappa.debugger.model.db.MatchStatistics Maven / Gradle / Ivy

The newest version!
package com.github.fge.grappa.debugger.model.db;

import com.github.fge.grappa.debugger.model.RuleInfo;
import com.github.fge.grappa.internal.NonFinalForTesting;

@NonFinalForTesting
public class MatchStatistics
{
    private final RuleInfo ruleInfo;
    private final int nonEmptyMatches;
    private final int emptyMatches;
    private final int failedMatches;

    public MatchStatistics(final RuleInfo ruleInfo, final int nonEmptyMatches,
        final int emptyMatches, final int failedMatches)
    {
        this.ruleInfo = ruleInfo;
        this.nonEmptyMatches = nonEmptyMatches;
        this.emptyMatches = emptyMatches;
        this.failedMatches = failedMatches;
    }

    public RuleInfo getRuleInfo()
    {
        return ruleInfo;
    }

    public int getNonEmptyMatches()
    {
        return nonEmptyMatches;
    }

    public int getEmptyMatches()
    {
        return emptyMatches;
    }

    public int getFailedMatches()
    {
        return failedMatches;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy