Class CSSRuleListImpl

  • All Implemented Interfaces:
    java.io.Serializable

    public class CSSRuleListImpl
    extends java.lang.Object
    implements java.io.Serializable
    Implementation of CSSRuleList.
    See Also:
    Serialized Form
    • Constructor Detail

      • CSSRuleListImpl

        public CSSRuleListImpl()
        Ctor.
    • Method Detail

      • getLength

        public int getLength()
        Returns:
        the number of rules
      • add

        public void add​(AbstractCSSRuleImpl rule)
        Add a rule.
        Parameters:
        rule - the rule to be added
      • insert

        public void insert​(AbstractCSSRuleImpl rule,
                           int index)
        Insert a rule at the given pos.
        Parameters:
        rule - the rule to be inserted
        index - the insert pos
      • delete

        public void delete​(int index)
        Delete the rule at the given pos.
        Parameters:
        index - the delete pos
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

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

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object