story.dbcore.nodes
Class NodeAddressSet

java.lang.Object
  extended by story.dbcore.nodes.NodeAddressSet
All Implemented Interfaces:
RenderableObject

public class NodeAddressSet
extends java.lang.Object
implements RenderableObject

A light wrapper for HashSet that only lets NodeAddresss in and out.


Constructor Summary
NodeAddressSet()
           
NodeAddressSet(NodeAddress first)
           
NodeAddressSet(NodeAddressSet toMerge1, NodeAddressSet toMerge2)
           
 
Method Summary
 void add(NodeAddress address)
           
 void add(NodeAddressSet nodes)
           
 boolean contains(NodeAddress address)
           
 boolean containsElementIn(NodeAddressSet other)
           
 java.util.Iterator iterator()
           
 java.lang.StringBuffer render()
           
 int size()
           
 NodeAddressSet subtractElementsIn(NodeAddressSet other)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeAddressSet

public NodeAddressSet()

NodeAddressSet

public NodeAddressSet(NodeAddressSet toMerge1,
                      NodeAddressSet toMerge2)

NodeAddressSet

public NodeAddressSet(NodeAddress first)
Method Detail

add

public void add(NodeAddress address)

contains

public boolean contains(NodeAddress address)

add

public void add(NodeAddressSet nodes)

size

public int size()

iterator

public java.util.Iterator iterator()

render

public java.lang.StringBuffer render()
                              throws Scheherexception
Specified by:
render in interface RenderableObject
Throws:
Scheherexception

subtractElementsIn

public NodeAddressSet subtractElementsIn(NodeAddressSet other)

containsElementIn

public boolean containsElementIn(NodeAddressSet other)


Copyright © 2011 David K. Elson. All Rights Reserved.