Rice Pastry 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 3613 2007-02-15 14:45:14Z jstewart $
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.

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection