Package org.omegat.core.statistics
Class MatchStatCounts
java.lang.Object
org.omegat.core.statistics.MatchStatCounts
Bean for store match count for one file or for full project, i.e. "Repetitions", "Exact match", "95%-100%",
"85%-94%", etc.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCounts(MatchStatCounts other) Add all counts contained in another MatchStatCounts instance into this instance.voidvoidaddForPercents(int percent, StatCount count) voidaddRepetition(StatCount count) voidvoidString[][]Extract result to text table.String[][]calcTable(String[] rows, IntPredicate rowFilter) Extract result to text table.String[][]calcTableWithoutPercentage(String[] rows) Extract first two rows result to text table.
-
Constructor Details
-
MatchStatCounts
public MatchStatCounts()
-
-
Method Details
-
addRepetition
-
addRepetitionWithinThisFile
-
addRepetitionFromOtherFiles
-
addExact
-
addForPercents
-
addCounts
Add all counts contained in another MatchStatCounts instance into this instance.- Parameters:
other- Counts to add- Returns:
- This instance
-
calcTableWithoutPercentage
Extract first two rows result to text table.- Parameters:
rows- an array of rows- Returns:
- text table
-
calcTable
Extract result to text table. Convenience method forcalcTable(String[], IntPredicate)that accepts all rows.- Parameters:
rows- An array of row headers- Returns:
- text table
-
calcTable
Extract result to text table. Rows for which therowFilterreturnsfalsewill be skipped.- Parameters:
rows- An array of row headersrowFilter- A filter indicating rows that should be kept- Returns:
- text table
-