Package com.helger.html.meta
Interface IMetaElementList
-
- All Superinterfaces:
com.helger.commons.collection.impl.ICommonsIterable<IMetaElement>,Iterable<IMetaElement>
- All Known Implementing Classes:
MetaElementList
@MustImplementEqualsAndHashcode public interface IMetaElementList extends com.helger.commons.collection.impl.ICommonsIterable<IMetaElement>
Read only base interface for a list ofIMetaElementobjects.- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancontainsMetaElementWithName(String sName)Check if a meta element with the given name exists.com.helger.commons.collection.impl.ICommonsOrderedSet<String>getAllMetaElementNames()com.helger.commons.collection.impl.ICommonsList<IMetaElement>getAllMetaElements()voidgetAllMetaElements(Collection<? super IMetaElement> aTarget)Add all contained meta elements to the passed container.intgetMetaElementCount()IMetaElementgetMetaElementOfName(String sName)Find the meta element with the given name.booleanhasMetaElements()-
Methods inherited from interface com.helger.commons.collection.impl.ICommonsIterable
containsAny, containsNone, containsOnly, findAll, findAllInstanceOf, findAllMapped, findAllMapped, findAllMapped, findFirst, findFirst, findFirstIndex, findFirstMapped, findFirstMapped, findLastIndex, forEachBreakable, forEachByIndex, forEachThrowing, getCount, getCount
-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
-
-
-
Method Detail
-
getAllMetaElementNames
@Nonnull @ReturnsMutableCopy com.helger.commons.collection.impl.ICommonsOrderedSet<String> getAllMetaElementNames()
- Returns:
- A set with used meta element names. Never
null.
-
getAllMetaElements
@Nonnull @ReturnsMutableCopy com.helger.commons.collection.impl.ICommonsList<IMetaElement> getAllMetaElements()
- Returns:
- A list with all contained meta elements. Never
null.
-
getAllMetaElements
void getAllMetaElements(@Nonnull Collection<? super IMetaElement> aTarget)
Add all contained meta elements to the passed container.- Parameters:
aTarget- The target container to be filled. May not benull.
-
getMetaElementOfName
@Nullable IMetaElement getMetaElementOfName(@Nullable String sName)
Find the meta element with the given name.- Parameters:
sName- The name to search. May benullor empty.- Returns:
nullif no such meta element exists.
-
containsMetaElementWithName
boolean containsMetaElementWithName(@Nullable String sName)
Check if a meta element with the given name exists.- Parameters:
sName- The name to check. May benullor empty.- Returns:
trueif a meta element with the passed name exists.
-
getMetaElementCount
@Nonnegative int getMetaElementCount()
- Returns:
- The number of contained meta elements. Always ≥ 0.
-
hasMetaElements
boolean hasMetaElements()
- Returns:
trueif at least one meta element is contained,falseotherwise.
-
-