Package org.htmlunit.cyberneko.util
Class SimpleArrayList.Partition<K>
java.lang.Object
org.htmlunit.cyberneko.util.SimpleArrayList<K>
org.htmlunit.cyberneko.util.SimpleArrayList.Partition<K>
- All Implemented Interfaces:
Iterable<K>
,Collection<K>
,List<K>
,SequencedCollection<K>
- Enclosing class:
SimpleArrayList<T>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.htmlunit.cyberneko.util.SimpleArrayList
SimpleArrayList.Partition<K>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.htmlunit.cyberneko.util.SimpleArrayList
add, addAll, addAll, clear, contains, containsAll, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, partition, remove, remove, removeAll, retainAll, set, subList, toArray
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
-
Field Details
-
from_
private final int from_ -
size_
private final int size_
-
-
Constructor Details
-
Partition
Partition(SimpleArrayList<K> list, int from, int to)
-
-
Method Details
-
add
Description copied from class:SimpleArrayList
Add an element to the end of the list- Specified by:
add
in interfaceCollection<K>
- Specified by:
add
in interfaceList<K>
- Overrides:
add
in classSimpleArrayList<K>
- Parameters:
o
- the element to add- Returns:
- true if added and for this impl it is always true
-
get
Description copied from class:SimpleArrayList
Return an element at index. No range checks at all. -
size
public int size()Description copied from class:SimpleArrayList
Returns the size of this list- Specified by:
size
in interfaceCollection<K>
- Specified by:
size
in interfaceList<K>
- Overrides:
size
in classSimpleArrayList<K>
-
toArray
Description copied from class:SimpleArrayList
Creates an array of the elements. This is a copy operation!- Specified by:
toArray
in interfaceCollection<K>
- Specified by:
toArray
in interfaceList<K>
- Overrides:
toArray
in classSimpleArrayList<K>
- Returns:
- an array of the elements
-