Modifier and Type | Class and Description |
---|---|
class |
BlockList.BlockListIterator |
Constructor and Description |
---|
BlockList() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(Block e) |
void |
add(int index,
Block element) |
boolean |
addAll(java.util.Collection<? extends Block> c) |
boolean |
addAll(int index,
java.util.Collection<? extends Block> c) |
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
Block |
get(int index) |
int |
indexOf(java.lang.Object o) |
void |
insert(Block newBlock,
Block nextBlock)
newBlock gets inserted before nextBlock.
|
boolean |
isEmpty() |
java.util.Iterator<Block> |
iterator() |
int |
lastIndexOf(java.lang.Object o) |
java.util.ListIterator<Block> |
listIterator() |
java.util.ListIterator<Block> |
listIterator(int index) |
Block |
remove(int index) |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
void |
replace(Block oldBlock,
Block newBlock) |
boolean |
retainAll(java.util.Collection<?> c) |
Block |
set(int index,
Block element) |
int |
size() |
java.util.List<Block> |
subList(int fromIndex,
int toIndex) |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] array) |
public int size()
public boolean isEmpty()
public boolean contains(java.lang.Object o)
public java.util.Iterator<Block> iterator()
public java.lang.Object[] toArray()
public <T> T[] toArray(T[] array)
public boolean add(Block e)
public void insert(Block newBlock, Block nextBlock)
newBlock
- nextBlock
- public boolean remove(java.lang.Object o)
public boolean containsAll(java.util.Collection<?> c)
public boolean addAll(java.util.Collection<? extends Block> c)
public boolean addAll(int index, java.util.Collection<? extends Block> c)
addAll
in interface java.util.List<Block>
public boolean removeAll(java.util.Collection<?> c)
public boolean retainAll(java.util.Collection<?> c)
public void clear()
public int indexOf(java.lang.Object o)
indexOf
in interface java.util.List<Block>
public int lastIndexOf(java.lang.Object o)
lastIndexOf
in interface java.util.List<Block>
public java.util.ListIterator<Block> listIterator()
listIterator
in interface java.util.List<Block>
public java.util.ListIterator<Block> listIterator(int index)
listIterator
in interface java.util.List<Block>