org.javimmutable.collections
Class Tuple4<A,B,C,D>

java.lang.Object
  extended by org.javimmutable.collections.Tuple4<A,B,C,D>
Type Parameters:
A -
B -
C -
D -

@Immutable
public class Tuple4<A,B,C,D>
extends Object

Immutable container for 4 values.


Constructor Summary
Tuple4(A first, B second, C third, D fourth)
           
 
Method Summary
 boolean equals(Object o)
           
 A getFirst()
           
 D getFourth()
           
 B getSecond()
           
 C getThird()
           
 int hashCode()
           
static
<A,B,C,D> Tuple4<A,B,C,D>
of(A first, B second, C third, D fourth)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tuple4

public Tuple4(A first,
              B second,
              C third,
              D fourth)
Method Detail

of

public static <A,B,C,D> Tuple4<A,B,C,D> of(A first,
                                           B second,
                                           C third,
                                           D fourth)

getFirst

public A getFirst()

getSecond

public B getSecond()

getThird

public C getThird()

getFourth

public D getFourth()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2014 Burton Computer Corporation. All rights reserved.