edu.jhu.tmaj.util.data
Class Triplet

java.lang.Object
  extended by edu.jhu.tmaj.util.data.Triplet
All Implemented Interfaces:
java.lang.Comparable

public final class Triplet
extends java.lang.Object
implements java.lang.Comparable

Represents 3 points, an X, Y, and Z.


Constructor Summary
Triplet(int x, int y, int z)
           
 
Method Summary
 int compareTo(java.lang.Object object)
          Returns 1 if this object is greater than the specified object, and -1 if the reverse is true.
 boolean equals(java.lang.Object object)
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Triplet

public Triplet(int x,
               int y,
               int z)
Method Detail

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

compareTo

public int compareTo(java.lang.Object object)
Returns 1 if this object is greater than the specified object, and -1 if the reverse is true. Z has highest priority, then Y, then X.

Specified by:
compareTo in interface java.lang.Comparable