com.groiss.ds
Class Triple<F,S,T>

java.lang.Object
  extended by com.groiss.ds.Triple<F,S,T>
All Implemented Interfaces:
java.io.Serializable

public class Triple<F,S,T>
extends java.lang.Object
implements java.io.Serializable

A Triple is an object that contains three other objects. It is most commonly used for conveniently storing and passing triples of objects.

See Also:
Serialized Form

Field Summary
 F first
          The first object.
 S second
          The second object.
 T third
          The third object.
 
Constructor Summary
Triple()
           
Triple(F first, S second, T third)
          Constructor for holding a pair of objects.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
static
<F,S,T> Triple<F,S,T>
from(F first, S second, T third)
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

first

public F first
The first object.


second

public S second
The second object.


third

public T third
The third object.

Constructor Detail

Triple

public Triple()

Triple

public Triple(F first,
              S second,
              T third)
Constructor for holding a pair of objects.

Method Detail

toString

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

hashCode

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

equals

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

from

public static <F,S,T> Triple<F,S,T> from(F first,
                                         S second,
                                         T third)


@enterprise 8.0.22989 Copyright © 2001-2017 Groiss Informatics GmbH. All Rights Reserved.