TestTheDatabase
Class IntegerKey

java.lang.Object
  extended byTestTheDatabase.IntegerKey
All Implemented Interfaces:
DB.Key

public class IntegerKey
extends java.lang.Object
implements DB.Key

IntegerKey models an integer key


Constructor Summary
IntegerKey(int j)
          IntegerKey constructs the key object
 
Method Summary
 boolean equals(DB.Key another_key)
          equals compares itself to another key, m, for equality
 boolean lessthan(DB.Key another_key)
           
 int valOf()
          valOf returns the integer value of the key
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegerKey

public IntegerKey(int j)
IntegerKey constructs the key object

Parameters:
j - - the integer held as the key
Method Detail

valOf

public int valOf()
valOf returns the integer value of the key


equals

public boolean equals(DB.Key another_key)
Description copied from interface: DB.Key
equals compares itself to another key, m, for equality

Specified by:
equals in interface DB.Key
Parameters:
another_key - - the other key
Returns:
true, if this key and m have the same key value; return false, otherwise

lessthan

public boolean lessthan(DB.Key another_key)