private static class Counters.AbstractPathCounters extends java.lang.Object implements Counters.PathCounters
Modifier and Type | Field and Description |
---|---|
private Counters.Counter |
byteCounter |
private Counters.Counter |
directoryCounter |
private Counters.Counter |
fileCounter |
Modifier | Constructor and Description |
---|---|
protected |
AbstractPathCounters(Counters.Counter byteCounter,
Counters.Counter directoryCounter,
Counters.Counter fileCounter)
Constructs a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Counters.Counter |
getByteCounter()
Gets the byte counter.
|
Counters.Counter |
getDirectoryCounter()
Gets the directory counter.
|
Counters.Counter |
getFileCounter()
Gets the count of visited files.
|
int |
hashCode() |
void |
reset()
Resets the counts to 0.
|
java.lang.String |
toString() |
private final Counters.Counter byteCounter
private final Counters.Counter directoryCounter
private final Counters.Counter fileCounter
protected AbstractPathCounters(Counters.Counter byteCounter, Counters.Counter directoryCounter, Counters.Counter fileCounter)
byteCounter
- the byte counter.directoryCounter
- the directory counter.fileCounter
- the file counter.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public Counters.Counter getByteCounter()
Counters.PathCounters
getByteCounter
in interface Counters.PathCounters
public Counters.Counter getDirectoryCounter()
Counters.PathCounters
getDirectoryCounter
in interface Counters.PathCounters
public Counters.Counter getFileCounter()
getFileCounter
in interface Counters.PathCounters
public int hashCode()
hashCode
in class java.lang.Object
public void reset()
Counters.PathCounters
reset
in interface Counters.PathCounters
public java.lang.String toString()
toString
in class java.lang.Object