@API(type=NOT_EXTENDABLE,
src=PRIVATE)
public class CSSCounter
extends java.lang.Object
Constructor and Description |
---|
CSSCounter(java.lang.String name)
Constructor.
|
CSSCounter(java.lang.String name,
int defaultValue)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName() |
int |
getValue() |
int |
hashCode() |
void |
increment(int increment)
Increment the counter.
|
void |
increment(int increment,
boolean ignoreNextIncremenet)
Increment the counter.
|
void |
reset()
Reset the counter to the initial value.
|
void |
setDefaultValue(int defValue) |
java.lang.String |
toString() |
public CSSCounter(java.lang.String name)
name
- The name of the counter.public CSSCounter(java.lang.String name, int defaultValue)
name
- The name of the counter.defaultValue
- The default value.public void increment(int increment, boolean ignoreNextIncremenet)
increment
- The increment value.ignoreNextIncremenet
- true
when the current counter is
set to an element deleted with track changes, and the next increment should
be ignored.public void increment(int increment)
increment
- The increment value.public void reset()
public int getValue()
public java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public void setDefaultValue(int defValue)
defValue
- public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.