|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsemorg.sql.util.KeyPair
public class KeyPair
Models a pair of DB-IDs.
Field Summary | |
---|---|
private int |
key1
The first id. |
private int |
key2
The second id. |
Constructor Summary | |
---|---|
KeyPair(int k1,
int k2)
Creates a KeyPair instance with the given parameters. |
Method Summary | |
---|---|
boolean |
equals(KeyPair toCompare)
Compares two KeyPair instances (k1,k2) and (k3,k4). |
int |
getKey1()
|
int |
getKey2()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int key1
private int key2
Constructor Detail |
---|
public KeyPair(int k1, int k2)
KeyPair
instance with the given parameters.
Method Detail |
---|
public boolean equals(KeyPair toCompare)
KeyPair
instances (k1,k2) and (k3,k4).
true
, if k1 = k3 and k2 = k4, otherwise
false
public int getKey1()
public int getKey2()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |