|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectse.ericsson.eto.norarc.javaframe.Database
A class that is a sketch of how a simple database e.g. for routing could be stuctured. The implementation is not useful if the speed of the database is of the essence
Constructor Summary | |
Database()
|
Method Summary | |
java.lang.Object |
Access(java.lang.Object key)
returns an Object from the Database that matches the given argument |
boolean |
Equals(byte[] a,
byte[] b)
utility to check whether two byte arrays have the same contents |
void |
Insert(java.lang.Object insrecord)
inserts a given object into the database Any duplicates will be removed before the new element is inserted |
protected boolean |
Match(java.lang.Object key,
java.lang.Object found)
returns true if the two arguments match each other |
void |
Remove(java.lang.Object insrecord)
removes an object from the database |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Database()
Method Detail |
protected boolean Match(java.lang.Object key, java.lang.Object found)
public java.lang.Object Access(java.lang.Object key)
public void Insert(java.lang.Object insrecord)
public void Remove(java.lang.Object insrecord)
public boolean Equals(byte[] a, byte[] b)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |