com.metsci.glimpse.util
Class Triplet<A,B,C>

java.lang.Object
  extended by com.metsci.glimpse.util.Triplet<A,B,C>

public class Triplet<A,B,C>
extends java.lang.Object

A generic class for triplets modeled after Pair.java.

Author:
hogye

Constructor Summary
Triplet(A first, B second, C third)
           
 
Method Summary
 boolean equals(java.lang.Object other)
           
 A first()
          Returns the first element.
 int hashCode()
           
static
<A,B,C> Triplet<A,B,C>
make(A a, B b, C c)
           
 B second()
          Returns the second element.
 C third()
          Returns the third element.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Triplet

public Triplet(A first,
               B second,
               C third)
Method Detail

first

public A first()
Returns the first element.


second

public B second()
Returns the second element.


third

public C third()
Returns the third element.


toString

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

equals

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

hashCode

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

make

public static final <A,B,C> Triplet<A,B,C> make(A a,
                                                B b,
                                                C c)


Copyright © 2012 Metron, Inc.. All Rights Reserved.