Package ro.sync.ecss.css
Class CSSCounterIncrement
- java.lang.Object
-
- ro.sync.ecss.css.CSSCounterIncrement
-
@API(type=NOT_EXTENDABLE, src=PRIVATE) public class CSSCounterIncrement extends java.lang.Object
A CSS counter increment data.
-
-
Constructor Summary
Constructors Constructor Description CSSCounterIncrement(java.lang.String name)
Constructor.CSSCounterIncrement(java.lang.String name, int incrVal)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
int
getIncrement()
java.lang.String
getName()
int
hashCode()
void
setIncrement(int val)
Sets the increment value.java.lang.String
toString()
-
-
-
Constructor Detail
-
CSSCounterIncrement
public CSSCounterIncrement(java.lang.String name)
Constructor.- Parameters:
name
- The name of the counter.
-
CSSCounterIncrement
public CSSCounterIncrement(java.lang.String name, int incrVal)
Constructor.- Parameters:
name
- The name of the counter.incrVal
- The default value.
-
-
Method Detail
-
getIncrement
public int getIncrement()
- Returns:
- The value of increment.
-
getName
public java.lang.String getName()
- Returns:
- The counter name.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- See Also:
Object.toString()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
- See Also:
Object.equals(java.lang.Object)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
- See Also:
Object.hashCode()
-
setIncrement
public void setIncrement(int val)
Sets the increment value.- Parameters:
val
- The increment value.
-
-