Class SelectorListImpl
- java.lang.Object
-
- org.htmlunit.cssparser.parser.AbstractLocatable
-
- org.htmlunit.cssparser.parser.selector.SelectorListImpl
-
- All Implemented Interfaces:
Serializable,Iterable<Selector>,Collection<Selector>,List<Selector>,Locatable,SelectorList
public class SelectorListImpl extends AbstractLocatable implements SelectorList, Serializable
Implementation of SelectorList.- Author:
- Ronald Brill
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SelectorListImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, Selector element)booleanadd(Selector e)booleanaddAll(int index, Collection<? extends Selector> c)booleanaddAll(Collection<? extends Selector> c)voidclear()booleancontains(Object o)booleancontainsAll(Collection<?> c)Selectorget(int index)List<Selector>getSelectors()getSelectors.intindexOf(Object o)booleanisEmpty()Iterator<Selector>iterator()intlastIndexOf(Object o)ListIterator<Selector>listIterator()ListIterator<Selector>listIterator(int index)Selectorremove(int index)booleanremove(Object o)booleanremoveAll(Collection<?> c)booleanretainAll(Collection<?> c)Selectorset(int index, Selector element)intsize()List<Selector>subList(int fromIndex, int toIndex)Object[]toArray()<T> T[]toArray(T[] a)StringtoString()-
Methods inherited from class org.htmlunit.cssparser.parser.AbstractLocatable
getLocator, setLocator
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
-
-
-
Method Detail
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
contains
public boolean contains(Object o)
-
toArray
public Object[] toArray()
-
toArray
public <T> T[] toArray(T[] a)
-
add
public boolean add(Selector e)
-
remove
public boolean remove(Object o)
-
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAllin interfaceCollection<Selector>- Specified by:
containsAllin interfaceList<Selector>
-
addAll
public boolean addAll(Collection<? extends Selector> c)
-
addAll
public boolean addAll(int index, Collection<? extends Selector> c)
-
removeAll
public boolean removeAll(Collection<?> c)
-
retainAll
public boolean retainAll(Collection<?> c)
-
clear
public void clear()
-
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOfin interfaceList<Selector>
-
listIterator
public ListIterator<Selector> listIterator()
- Specified by:
listIteratorin interfaceList<Selector>
-
listIterator
public ListIterator<Selector> listIterator(int index)
- Specified by:
listIteratorin interfaceList<Selector>
-
-