public class BlockWorkList extends Object
| Constructor and Description |
|---|
BlockWorkList() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(AbstractMergeNode block)
Adds a block to this list in an unsorted fashion, like a stack.
|
void |
addSorted(AbstractMergeNode block,
int number)
Adds a block to this list, sorted by the supplied number.
|
boolean |
isEmpty()
Checks whether the list is empty.
|
AbstractMergeNode |
removeFromWorkList()
Removes the next block from this work list.
|
public void add(AbstractMergeNode block)
block - the block to addpublic void addSorted(AbstractMergeNode block, int number)
block - the block to addnumber - the number used to sort the blockpublic AbstractMergeNode removeFromWorkList()
public boolean isEmpty()
true if this list is empty