DbStorage.manager
Class DictionaryEntry

java.lang.Object
  extended byDbStorage.manager.DictionaryEntry

public final class DictionaryEntry
extends java.lang.Object

This class represents a pair formed of a PhysicalID and a string name.


Nested Class Summary
static class DictionaryEntry.ByIDComparator
          This class is used to compare two DictionaryEntrys using their ID component first and their name component second.
static class DictionaryEntry.ByNameComparator
          This class is used to compare two DictionaryEntrys using their name component first and their ID component second.
 
Constructor Summary
DictionaryEntry()
          Constructs DictionaryEntry with null components.
DictionaryEntry(java.lang.String name, PhysicalID id)
          Constructs DictionaryEntry with specified components.
 
Method Summary
 PhysicalID getID()
          Returns the ID component.
 java.lang.String getName()
          Returns the name component.
 void setID(PhysicalID id)
          Sets the ID component.
 void setName(java.lang.String name)
          Sets the name component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DictionaryEntry

public DictionaryEntry()
Constructs DictionaryEntry with null components.


DictionaryEntry

public DictionaryEntry(java.lang.String name,
                       PhysicalID id)
Constructs DictionaryEntry with specified components.

Method Detail

getName

public java.lang.String getName()
Returns the name component.


getID

public PhysicalID getID()
Returns the ID component.


setName

public void setName(java.lang.String name)
Sets the name component.


setID

public void setID(PhysicalID id)
Sets the ID component.