bamboo.dmgr
Class MerkleTree.Node.Iter

java.lang.Object
  extended by bamboo.dmgr.MerkleTree.Node.Iter
Enclosing class:
MerkleTree.Node

public class MerkleTree.Node.Iter
extends Object

A class for iterating over this node's children.


Constructor Summary
MerkleTree.Node.Iter(long s)
           
 
Method Summary
 MerkleTree.Node create()
          Create a child node at the current iterator position.
 boolean hasNext()
           
 MerkleTree.Node next()
           
 void remove()
           
protected  long where(int position)
          Returns the lowest timestamp covered by the child at the current iterator position.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MerkleTree.Node.Iter

public MerkleTree.Node.Iter(long s)
Method Detail

hasNext

public boolean hasNext()

next

public MerkleTree.Node next()

create

public MerkleTree.Node create()
Create a child node at the current iterator position.

Throws:
NoSuchElementException - if the hasNext()==false.
IllegalStateException - if there is already a child at the current position.

remove

public void remove()

where

protected long where(int position)
Returns the lowest timestamp covered by the child at the current iterator position.