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 boolean
add(K o)
Add an element to the end of the listK
get(int index)
Return an element at index.int
size()
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:SimpleArrayList
Add an element to the end of the list- Specified by:
add
in interfacejava.util.Collection<K>
- Specified by:
add
in interfacejava.util.List<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
public K get(int index)
Description copied from class:SimpleArrayList
Return an element at index. No range checks at all.- Specified by:
get
in interfacejava.util.List<K>
- Overrides:
get
in classSimpleArrayList<K>
- Parameters:
index
- the position- Returns:
- the element at this position
-
size
public int size()
Description copied from class:SimpleArrayList
Returns the size of this list- Specified by:
size
in interfacejava.util.Collection<K>
- Specified by:
size
in interfacejava.util.List<K>
- Overrides:
size
in classSimpleArrayList<K>
-
toArray
public K[] toArray()
Description copied from class:SimpleArrayList
Creates an array of the elements. This is a copy operation!- Specified by:
toArray
in interfacejava.util.Collection<K>
- Specified by:
toArray
in interfacejava.util.List<K>
- Overrides:
toArray
in classSimpleArrayList<K>
- Returns:
- an array of the elements
-
-