Class CSSCounterIncrement


  • @API(type=NOT_EXTENDABLE,
         src=PRIVATE)
    public class CSSCounterIncrement
    extends java.lang.Object
    A CSS counter increment data.
    • 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 class java.lang.Object
        See Also:
        Object.toString()
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
        See Also:
        Object.equals(java.lang.Object)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
        See Also:
        Object.hashCode()
      • setIncrement

        public void setIncrement​(int val)
        Sets the increment value.
        Parameters:
        val - The increment value.