Class CSSStyleSheetListImpl

java.lang.Object
org.htmlunit.cssparser.dom.CSSStyleSheetListImpl

public class CSSStyleSheetListImpl extends Object
Implementation of StyleSheetList.
  • Field Details

  • Constructor Details

    • CSSStyleSheetListImpl

      public CSSStyleSheetListImpl()
  • Method Details

    • getCSSStyleSheets

      public List<CSSStyleSheetImpl> getCSSStyleSheets()
      Returns:
      the list of style sheets
    • getLength

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

      public void add(CSSStyleSheetImpl cssStyleSheet)
      Adds a CSSStyleSheet.
      Parameters:
      cssStyleSheet - the CSSStyleSheet
    • merge

      public CSSStyleSheetImpl merge()
      Merges all StyleSheets in this list into one.
      Returns:
      the new (merged) StyleSheet
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsStyleSheets

      private boolean equalsStyleSheets(CSSStyleSheetListImpl ssl)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object