ePOST API

rice.pastry
Class NodeSetUpdate

java.lang.Object
  extended by rice.pastry.NodeSetUpdate

public class NodeSetUpdate
extends java.lang.Object

A class which stores changes to a node set.

Version:
$Id: NodeSetUpdate.java 2302 2005-03-11 00:58:26Z jeffh $
Author:
Andrew Ladd

Constructor Summary
NodeSetUpdate(NodeHandle which, boolean how)
          Constructor.
 
Method Summary
 NodeHandle handle()
          The handle that changed.
 boolean wasAdded()
          Returns true if the handle was added to the set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeSetUpdate

public NodeSetUpdate(NodeHandle which,
                     boolean how)
Constructor.

Parameters:
which - the handle that changed.
how - true if it was added to the set, false otherwise.
Method Detail

handle

public NodeHandle handle()
The handle that changed.

Returns:
the node handle that changed.

wasAdded

public boolean wasAdded()
Returns true if the handle was added to the set.

Returns:
true if added, false otherwise.

ePOST API

Copyright © 2001-2005 - Rice Pastry.