Package org.loboevolution.html.node
Class AbstractList<E>
java.lang.Object
org.loboevolution.js.AbstractScriptableDelegate
org.loboevolution.html.node.AbstractList<E>
- All Implemented Interfaces:
Iterable<E>
,Collection<E>
,List<E>
,SequencedCollection<E>
,ScriptableDelegate
- Direct Known Subclasses:
CSSRuleListImpl
,DOMRectListImpl
,FormDataImpl
,HTMLAllCollectionImpl
,HTMLCollectionImpl
,NodeIteratorImpl
,NodeListImpl
,NodeSet
,StyleSheetListImpl
AbstractList class.
-
Constructor Summary
ConstructorDescriptionConstructor for AbstractList.AbstractList
(E rootNode) Constructor for AbstractList.AbstractList
(List<E> list) Constructor for AbstractList. -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
boolean
addAll
(int index, Collection<? extends E> c) boolean
addAll
(Collection<? extends E> c) void
clear()
boolean
boolean
containsAll
(Collection<?> c) get
(int index) getList()
Getter for the fieldlist
.int
boolean
isEmpty()
iterator()
int
listIterator
(int index) remove
(int index) boolean
boolean
removeAll
(Collection<?> c) boolean
retainAll
(Collection<?> c) void
int
size()
subList
(int fromIndex, int toIndex) E[]
toArray()
<T> T[]
toArray
(T[] a) Methods inherited from class org.loboevolution.js.AbstractScriptableDelegate
getScriptable, setScriptable
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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
-
Method Details
-
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<E>
- Specified by:
containsAll
in interfaceList<E>
-
addAll
-
addAll
-
removeAll
-
retainAll
-
clear
public void clear() -
get
-
set
-
add
-
remove
-
indexOf
-
lastIndexOf
- Specified by:
lastIndexOf
in interfaceList<E>
-
listIterator
- Specified by:
listIterator
in interfaceList<E>
-
listIterator
- Specified by:
listIterator
in interfaceList<E>
-
subList
-
getList
Getter for the field
list
.- Returns:
- a
List
object.
-
setList
-