edu.jhu.tmaj.beans.manytomany
Class LinkGroup

java.lang.Object
  extended by edu.jhu.tmaj.beans.manytomany.LinkGroup
All Implemented Interfaces:
java.io.Serializable

final class LinkGroup
extends java.lang.Object
implements java.io.Serializable

Links Integers to a Set. Example: integer 5 may be link to set (5,4,9) and integer 54 to set (32,84,134)


Constructor Summary
LinkGroup()
           
 
Method Summary
(package private)  void addKey(int key, int keyToAdd)
          Adds a key mapping.
(package private)  java.util.Set<java.lang.Integer> getIDSetForKey(int key)
          Returns a Set of Integers for a specified key in the ManyToManyTable.
(package private)  java.util.Set<java.lang.Integer> getMappedKeys()
          Returns a set of keys that are mapped to at least one value.
(package private)  void removeKey(int key, int keyToRemove)
          Removes a key mapping.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkGroup

LinkGroup()
Method Detail

addKey

void addKey(int key,
            int keyToAdd)
Adds a key mapping.


removeKey

void removeKey(int key,
               int keyToRemove)
Removes a key mapping.


getIDSetForKey

java.util.Set<java.lang.Integer> getIDSetForKey(int key)
Returns a Set of Integers for a specified key in the ManyToManyTable.


getMappedKeys

java.util.Set<java.lang.Integer> getMappedKeys()
Returns a set of keys that are mapped to at least one value.