org.jopendocument.util
Class Tuple3<A,B,C>

java.lang.Object
  extended by org.jopendocument.util.Tuple2<A,B>
      extended by org.jopendocument.util.Tuple3<A,B,C>
Type Parameters:
A - type of first value.
B - type of second value.
C - type of third value.
Direct Known Subclasses:
Tuple3.List3

public class Tuple3<A,B,C>
extends Tuple2<A,B>

A simple class to hold 3 values in a type-safe manner.

Author:
Sylvain

Nested Class Summary
static class Tuple3.List3<A>
           
 
Nested classes/interfaces inherited from class org.jopendocument.util.Tuple2
Tuple2.List2<A>
 
Constructor Summary
Tuple3(A a, B b, C c)
           
 
Method Summary
 java.util.List<? extends java.lang.Object> asList()
           
static
<A,B,C> Tuple3<A,B,C>
create(A a, B b, C c)
           
 C get2()
           
 
Methods inherited from class org.jopendocument.util.Tuple2
create, equals, get0, get1, hashCode, nullInstance, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Tuple3

public Tuple3(A a,
              B b,
              C c)
Method Detail

create

public static final <A,B,C> Tuple3<A,B,C> create(A a,
                                                 B b,
                                                 C c)

get2

public final C get2()

asList

public java.util.List<? extends java.lang.Object> asList()
Overrides:
asList in class Tuple2<A,B>