org.mulgara.util
Class Trio<X,Y,Z>

java.lang.Object
  extended by org.mulgara.util.Trio<X,Y,Z>
Direct Known Subclasses:
Triple

public class Trio<X,Y,Z>
extends Object

A threesome of values


Field Summary
 X _1
          The first.
 Y _2
          The second.
 Z _3
          The third.
 
Constructor Summary
Trio(X x, Y y, Z z)
          Create a new trio.
 
Method Summary
 boolean equals(Object o)
          Equality method.
 X getFirst()
          Gets the first
 Y getSecond()
          Gets the second
 Z getThird()
          Gets the third
 int hashCode()
          The hashcode, based on the first and second.
 String toString()
          Represents this node as a string.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

_1

public final X _1
The first.


_2

public final Y _2
The second.


_3

public final Z _3
The third.

Constructor Detail

Trio

public Trio(X x,
            Y y,
            Z z)
Create a new trio.

Parameters:
x - The first part of the trio.
y - The second part of the trio.
z - The third part of the trio.
Method Detail

getFirst

public X getFirst()
Gets the first


getSecond

public Y getSecond()
Gets the second


getThird

public Z getThird()
Gets the third


equals

public boolean equals(Object o)
Equality method. Based on the wrapped URI.

Overrides:
equals in class Object

hashCode

public int hashCode()
The hashcode, based on the first and second.

Overrides:
hashCode in class Object

toString

public String toString()
Represents this node as a string.

Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.