Skip to content

Commit b4ee0fd

Browse files
committed
Reverted to getCount
1 parent ebabe82 commit b4ee0fd

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

ph-css/src/main/java/com/helger/css/decl/AbstractHasTopLevelRules.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ public boolean hasStyleRules ()
227227
@Nonnegative
228228
public int getStyleRuleCount ()
229229
{
230-
return m_aRules.size (CSSStyleRule.class::isInstance);
230+
return m_aRules.getCount (CSSStyleRule.class::isInstance);
231231
}
232232

233233
/**
@@ -275,7 +275,7 @@ public boolean hasPageRules ()
275275
@Nonnegative
276276
public int getPageRuleCount ()
277277
{
278-
return m_aRules.size (CSSPageRule.class::isInstance);
278+
return m_aRules.getCount (CSSPageRule.class::isInstance);
279279
}
280280

281281
/**
@@ -324,7 +324,7 @@ public boolean hasMediaRules ()
324324
@Nonnegative
325325
public int getMediaRuleCount ()
326326
{
327-
return m_aRules.size (CSSMediaRule.class::isInstance);
327+
return m_aRules.getCount (CSSMediaRule.class::isInstance);
328328
}
329329

330330
/**
@@ -374,7 +374,7 @@ public boolean hasFontFaceRules ()
374374
@Nonnegative
375375
public int getFontFaceRuleCount ()
376376
{
377-
return m_aRules.size (CSSFontFaceRule.class::isInstance);
377+
return m_aRules.getCount (CSSFontFaceRule.class::isInstance);
378378
}
379379

380380
/**
@@ -425,7 +425,7 @@ public boolean hasKeyframesRules ()
425425
@Nonnegative
426426
public int getKeyframesRuleCount ()
427427
{
428-
return m_aRules.size (CSSKeyframesRule.class::isInstance);
428+
return m_aRules.getCount (CSSKeyframesRule.class::isInstance);
429429
}
430430

431431
/**
@@ -476,7 +476,7 @@ public boolean hasViewportRules ()
476476
@Nonnegative
477477
public int getViewportRuleCount ()
478478
{
479-
return m_aRules.size (CSSViewportRule.class::isInstance);
479+
return m_aRules.getCount (CSSViewportRule.class::isInstance);
480480
}
481481

482482
/**
@@ -527,7 +527,7 @@ public boolean hasSupportsRules ()
527527
@Nonnegative
528528
public int getSupportsRuleCount ()
529529
{
530-
return m_aRules.size (CSSSupportsRule.class::isInstance);
530+
return m_aRules.getCount (CSSSupportsRule.class::isInstance);
531531
}
532532

533533
/**
@@ -577,7 +577,7 @@ public boolean hasUnknownRules ()
577577
@Nonnegative
578578
public int getUnknownRuleCount ()
579579
{
580-
return m_aRules.size (CSSUnknownRule.class::isInstance);
580+
return m_aRules.getCount (CSSUnknownRule.class::isInstance);
581581
}
582582

583583
/**

0 commit comments

Comments
 (0)