public class MatchStatCounts
extends java.lang.Object
Constructor and Description |
---|
MatchStatCounts() |
Modifier and Type | Method and Description |
---|---|
MatchStatCounts |
addCounts(MatchStatCounts other)
Add all counts contained in another MatchStatCounts instance into this
instance.
|
void |
addExact(StatCount count) |
void |
addForPercents(int percent,
StatCount count) |
void |
addRepetition(StatCount count) |
void |
addRepetitionFromOtherFiles(StatCount count) |
void |
addRepetitionWithinThisFile(StatCount count) |
java.lang.String[][] |
calcTable(java.lang.String[] rows)
Extract result to text table.
|
java.lang.String[][] |
calcTable(java.lang.String[] rows,
java.util.function.IntPredicate rowFilter)
Extract result to text table.
|
java.lang.String[][] |
calcTableWithoutPercentage(java.lang.String[] rows)
Extract first two rows result to text table.
|
public void addRepetition(StatCount count)
public void addRepetitionWithinThisFile(StatCount count)
public void addRepetitionFromOtherFiles(StatCount count)
public void addExact(StatCount count)
public void addForPercents(int percent, StatCount count)
public MatchStatCounts addCounts(MatchStatCounts other)
other
- Counts to addpublic java.lang.String[][] calcTableWithoutPercentage(java.lang.String[] rows)
rows
- an array of rowspublic java.lang.String[][] calcTable(java.lang.String[] rows)
calcTable(String[], IntPredicate)
that accepts all rows.rows
- An array of row headerspublic java.lang.String[][] calcTable(java.lang.String[] rows, java.util.function.IntPredicate rowFilter)
rowFilter
returns false
will be skipped.rows
- An array of row headersrowFilter
- A filter indicating rows that should be kept