public class Counters extends Object implements Serializable, Comparable<Counters>
Constructor and Description |
---|
Counters(int inodeCounter,
long editTransactionId,
int dependencyCounter)
Create a new Counters.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Counters o) |
boolean |
equals(Object o) |
int |
getDependencyCounter() |
long |
getEditTransactionCounter() |
int |
getInodeCounter() |
int |
hashCode() |
String |
toString() |
void |
updateDependencyCounter(int dependencyCounter)
Update the dependencyCounter.
|
void |
updateEditTransactionCounter(long id)
Update the editTransactionId.
|
void |
updateInodeCounter(int inodeCounter)
Update the inodeCounter.
|
public Counters(int inodeCounter, long editTransactionId, int dependencyCounter)
inodeCounter
- The initial value of the inodeCountereditTransactionId
- The initial value of the editTransactionIddependencyCounter
- The initial value of the dependencyCounterpublic int compareTo(Counters o)
compareTo
in interface Comparable<Counters>
public int getDependencyCounter()
public long getEditTransactionCounter()
public int getInodeCounter()
public void updateDependencyCounter(int dependencyCounter)
dependencyCounter
- The input dependencyCounterpublic void updateEditTransactionCounter(long id)
id
- The input editTransactionIdpublic void updateInodeCounter(int inodeCounter)
inodeCounter
- The input inodeCounterCopyright © 2015. All Rights Reserved.