Package org.cakelab.blender.io.block
Class BlockList
- java.lang.Object
-
- org.cakelab.blender.io.block.BlockList
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
BlockList.BlockListIterator
-
Constructor Summary
Constructors Constructor Description BlockList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, Block element)
boolean
add(Block e)
boolean
addAll(int index, java.util.Collection<? extends Block> c)
boolean
addAll(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)
-
-
-
Method Detail
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
contains
public boolean contains(java.lang.Object o)
-
iterator
public java.util.Iterator<Block> iterator()
-
toArray
public java.lang.Object[] toArray()
-
toArray
public <T> T[] toArray(T[] array)
-
add
public boolean add(Block e)
-
insert
public void insert(Block newBlock, Block nextBlock)
newBlock gets inserted before nextBlock.- Parameters:
newBlock
-nextBlock
-
-
remove
public boolean remove(java.lang.Object o)
-
containsAll
public boolean containsAll(java.util.Collection<?> c)
-
addAll
public boolean addAll(java.util.Collection<? extends Block> c)
-
addAll
public boolean addAll(int index, java.util.Collection<? extends Block> c)
- Specified by:
addAll
in interfacejava.util.List<Block>
-
removeAll
public boolean removeAll(java.util.Collection<?> c)
-
retainAll
public boolean retainAll(java.util.Collection<?> c)
-
clear
public void clear()
-
set
public Block set(int index, Block element)
- Specified by:
set
in interfacejava.util.List<Block>
-
indexOf
public int indexOf(java.lang.Object o)
- Specified by:
indexOf
in interfacejava.util.List<Block>
-
lastIndexOf
public int lastIndexOf(java.lang.Object o)
- Specified by:
lastIndexOf
in interfacejava.util.List<Block>
-
listIterator
public java.util.ListIterator<Block> listIterator()
- Specified by:
listIterator
in interfacejava.util.List<Block>
-
listIterator
public java.util.ListIterator<Block> listIterator(int index)
- Specified by:
listIterator
in interfacejava.util.List<Block>
-
-