public class Counter extends Object
| Constructor and Description |
|---|
Counter(String filesExtension)
Create a counter is available only with the extension of the processed files
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
hashCode() |
void |
plus(Counter counter)
Summation of the values of the two counters
|
void |
processLine(String line)
Process one line of file to calculate coefficients.
|
String |
toString() |
public Counter(String filesExtension)
filesExtension - extension of files that will be used to calculate the coefficientspublic void processLine(String line)
line - the line of processed filepublic void plus(Counter counter)
counter - the counter whose values will be added to the values of current counterCopyright © 2016. All Rights Reserved.