il2.util
Class Pair

Object
  extended by Pair

public final class Pair
extends Object

An ordered pair of ints.

This class conforms to the immutable design pattern.

Author:
James Park, Mark Chavira

Field Summary
 int s1
          The first int.
 int s2
          The second int.
 
Constructor Summary
Pair(Integer i1, Integer i2)
          Initializes the pair.
Pair(int i1, int i2)
          Initializes the pair.
 
Method Summary
 boolean equals(Object obj)
          Fulfills java.lang.Object.
 int hashCode()
          Fulfills java.lang.Object.
 
Methods inherited from class Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

s1

public final int s1
The first int.


s2

public final int s2
The second int.

Constructor Detail

Pair

public Pair(Integer i1,
            Integer i2)
Initializes the pair.

Parameters:
i1 - the first int.
i2 - the second int.

Pair

public Pair(int i1,
            int i2)
Initializes the pair.

Parameters:
i1 - the first int.
i2 - the second int.
Method Detail

equals

public boolean equals(Object obj)
Fulfills java.lang.Object.

Overrides:
equals in class Object

hashCode

public int hashCode()
Fulfills java.lang.Object.

Overrides:
hashCode in class Object


Copyright 2010 UCLA Automated Reasoning Group