Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## semorg.sql.util
Class KeyPair

    java.lang.Object
      semorg.sql.util.KeyPair

    public class KeyPair

extends Object

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

### key1

    private int key1

  The first id.

### key2

    private int key2

  The second id.

Constructor Detail

### KeyPair

    public KeyPair(int k1,
                   int k2)

  Creates a `KeyPair` instance with the given parameters.

Method Detail

### equals

    public boolean equals(KeyPair toCompare)

  Compares two `KeyPair` instances (k1,k2) and (k3,k4).

  Returns:
    `true`, if k1 = k3 and k2 = k4, otherwise `false`

### getKey1

    public int getKey1()

### getKey2

    public int getKey2()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD