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>
,SequencedCollection<Selector>
,Locatable
,SelectorList
Implementation of SelectorList.
- Author:
- Ronald Brill
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
boolean
addAll
(int index, Collection<? extends Selector> c) boolean
addAll
(Collection<? extends Selector> c) void
clear()
boolean
boolean
containsAll
(Collection<?> c) get
(int index) getSelectors.int
boolean
isEmpty()
iterator()
int
listIterator
(int index) remove
(int index) boolean
boolean
removeAll
(Collection<?> c) boolean
retainAll
(Collection<?> c) int
size()
subList
(int fromIndex, int toIndex) Object[]
toArray()
<T> T[]
toArray
(T[] a) toString()
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
addFirst, addLast, equals, getFirst, getLast, hashCode, removeFirst, removeLast, replaceAll, reversed, sort, spliterator
-
Constructor Details
-
SelectorListImpl
public SelectorListImpl()
-
-
Method Details
-
getSelectors
getSelectors.
- Returns:
- the list of selectors.
-
toString
-
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
-
iterator
-
toArray
-
toArray
public <T> T[] toArray(T[] a) -
add
-
remove
-
containsAll
- Specified by:
containsAll
in interfaceCollection<Selector>
- Specified by:
containsAll
in interfaceList<Selector>
-
addAll
-
addAll
-
removeAll
-
retainAll
-
clear
public void clear() -
get
-
set
-
add
-
remove
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<Selector>
-
listIterator
- Specified by:
listIterator
in interfaceList<Selector>
-
listIterator
- Specified by:
listIterator
in interfaceList<Selector>
-
subList
-