soc.util
Class IntTriple

java.lang.Object
  extended by soc.util.IntTriple

public class IntTriple
extends java.lang.Object

An ordered triple of 3 ints.

See Also:
IntPair

Field Summary
 int a
          The first int of the ordered triple
 int b
          The second int of the ordered triple
 int c
          The third int of the ordered triple
 
Constructor Summary
IntTriple(int a, int b, int c)
          Creates a new IntTriple object.
 
Method Summary
 boolean equals(IntTriple it)
          Are these IntTriples' integers equal (ordered comparison)? Unlike IntPair.equals(IntPair), the order matters.
 java.lang.String toString()
          Get a string with the hex contents of this triple.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

a

public int a
The first int of the ordered triple


b

public int b
The second int of the ordered triple


c

public int c
The third int of the ordered triple

Constructor Detail

IntTriple

public IntTriple(int a,
                 int b,
                 int c)
Creates a new IntTriple object.

Parameters:
a - First int
b - Second int
c - Third int
Method Detail

equals

public boolean equals(IntTriple it)
Are these IntTriples' integers equal (ordered comparison)? Unlike IntPair.equals(IntPair), the order matters.

Parameters:
it - Another IntTriple
Returns:
True if triples' contents are (I,J,K) and (I,J,K)

toString

public java.lang.String toString()
Get a string with the hex contents of this triple.

Overrides:
toString in class java.lang.Object
Returns:
A string of format "a:##, b:##, c:##", where ## are the values in hexadecimal