story.dbcore.links
Class NodeList

java.lang.Object
  extended by story.dbcore.links.NodeList

public class NodeList
extends java.lang.Object

A replacement for Hashtable for use in RelatedNodes that saves space by only actually using a hash table if N is more than 1.


Nested Class Summary
 class NodeList.NodeListKeyEnumeration
          Small class that implements an Enumeration over a single key.
 class NodeList.NodeListValueEnumeration
          Small class that implements an Enumeration over a single value.
 
Constructor Summary
NodeList()
           
 
Method Summary
 void clear()
           
 boolean containsKey(GenericNode node)
           
 java.util.Enumeration<LabelAddressList> elements()
           
 LabelAddressList get(GenericNode node)
           
 java.util.Enumeration<GenericNode> keys()
           
 void put(GenericNode node, LabelAddressList value)
           
 LabelAddressList remove(GenericNode node)
           
 int size()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeList

public NodeList()
Method Detail

containsKey

public boolean containsKey(GenericNode node)

get

public LabelAddressList get(GenericNode node)
                     throws Scheherexception
Throws:
Scheherexception

elements

public java.util.Enumeration<LabelAddressList> elements()

keys

public java.util.Enumeration<GenericNode> keys()

size

public int size()

clear

public void clear()

put

public void put(GenericNode node,
                LabelAddressList value)

remove

public LabelAddressList remove(GenericNode node)


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