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>
- Since:
- 7.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class SimpleArrayList
SimpleArrayList.Partition<K> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class SimpleArrayList
add, addAll, addAll, clear, contains, containsAll, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, partition, remove, remove, removeAll, retainAll, set, subList, toArrayMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface 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:SimpleArrayListAdd an element to the end of the list- Specified by:
addin interfaceCollection<K>- Specified by:
addin interfaceList<K>- Overrides:
addin 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:SimpleArrayListReturn an element at index. No range checks at all. -
size
public int size()Description copied from class:SimpleArrayListReturns the size of this list- Specified by:
sizein interfaceCollection<K>- Specified by:
sizein interfaceList<K>- Overrides:
sizein classSimpleArrayList<K>
-
toArray
Description copied from class:SimpleArrayListCreates an array of the elements. This is a copy operation!- Specified by:
toArrayin interfaceCollection<K>- Specified by:
toArrayin interfaceList<K>- Overrides:
toArrayin classSimpleArrayList<K>- Returns:
- an array of the elements
-