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:
java.lang.Iterable<K>,java.util.Collection<K>,java.util.List<K>
- Enclosing class:
- SimpleArrayList<T>
class SimpleArrayList.Partition<K> extends SimpleArrayList<K>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.htmlunit.cyberneko.util.SimpleArrayList
SimpleArrayList.Partition<K>
-
-
Constructor Summary
Constructors Constructor Description Partition(SimpleArrayList<K> list, int from, int to)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(K o)Add an element to the end of the listKget(int index)Return an element at index.intsize()Returns the size of this listK[]toArray()Creates an array of the elements.-
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
-
-
-
-
Constructor Detail
-
Partition
Partition(SimpleArrayList<K> list, int from, int to)
-
-
Method Detail
-
add
public boolean add(K o)
Description copied from class:SimpleArrayListAdd an element to the end of the list- Specified by:
addin interfacejava.util.Collection<K>- Specified by:
addin interfacejava.util.List<K>- Overrides:
addin classSimpleArrayList<K>- Parameters:
o- the element to add- Returns:
- true if added and for this impl it is always true
-
get
public K get(int index)
Description copied from class:SimpleArrayListReturn an element at index. No range checks at all.- Specified by:
getin interfacejava.util.List<K>- Overrides:
getin classSimpleArrayList<K>- Parameters:
index- the position- Returns:
- the element at this position
-
size
public int size()
Description copied from class:SimpleArrayListReturns the size of this list- Specified by:
sizein interfacejava.util.Collection<K>- Specified by:
sizein interfacejava.util.List<K>- Overrides:
sizein classSimpleArrayList<K>
-
toArray
public K[] toArray()
Description copied from class:SimpleArrayListCreates an array of the elements. This is a copy operation!- Specified by:
toArrayin interfacejava.util.Collection<K>- Specified by:
toArrayin interfacejava.util.List<K>- Overrides:
toArrayin classSimpleArrayList<K>- Returns:
- an array of the elements
-
-