org.jostraca
Class BlockList

java.lang.Object
  extended byorg.jostraca.BlockList

public class BlockList
extends java.lang.Object

Description:
Store a list of Blocks. Each BlockList instance may only be used once.


Constructor Summary
BlockList()
           
 
Method Summary
 void add(Block pBlock)
          Add a Block to the list.
 boolean equals(BlockList pBlockList)
           
 boolean equals(java.lang.Object pObject)
           
 Block getBlock(int pIndex)
          Get specific block.
 boolean hasMoreBlocks()
          True if list containers further blocks.
 void insert(BlockList pBlockList)
           
 Block nextBlock()
          Return next Block in list.
 int numBlocks()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BlockList

public BlockList()
Method Detail

add

public void add(Block pBlock)
Add a Block to the list.

Parameters:
pBlock - (not validated) Block object to add.

hasMoreBlocks

public boolean hasMoreBlocks()
True if list containers further blocks.


getBlock

public Block getBlock(int pIndex)
Get specific block.


nextBlock

public Block nextBlock()
Return next Block in list. Will fail with ArrayIndexOutOfBoundsException if hasMoreBlocks() is false.


insert

public void insert(BlockList pBlockList)

numBlocks

public int numBlocks()

equals

public boolean equals(java.lang.Object pObject)

equals

public boolean equals(BlockList pBlockList)

toString

public java.lang.String toString()


Copyright © 2000-2002 Richard Rodger