com.sentilla.platform.tmote
Class CollectionProtocol.NeighborTable.Iterator

java.lang.Object
  extended by com.sentilla.platform.tmote.CollectionProtocol.NeighborTable.Iterator
Enclosing class:
CollectionProtocol.NeighborTable

public class CollectionProtocol.NeighborTable.Iterator
extends Object

Iterator class for the NeighborTable.


Constructor Summary
CollectionProtocol.NeighborTable.Iterator()
          Default constructor.
 
Method Summary
 boolean hasNext()
          Returns true if the table contains another element.
 CollectionProtocol.RTable next()
          Returns the next element in the table.
 long remove()
          Removes the last element this iterator pointed to.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionProtocol.NeighborTable.Iterator

public CollectionProtocol.NeighborTable.Iterator()
Default constructor.

Method Detail

hasNext

public boolean hasNext()
Returns true if the table contains another element.

Returns:
true if the iterator can reach another element, false otherwise

next

public CollectionProtocol.RTable next()
Returns the next element in the table.

Returns:
the next element in the table

remove

public long remove()
Removes the last element this iterator pointed to.

Returns:
Returns the removed element address


Copyright © 2007 Sentilla Corporation. All Rights Reserved.