org.jopendocument.util
Class Tuple2<A,B>
java.lang.Object
org.jopendocument.util.Tuple2<A,B>
- Type Parameters:
A
- type of first value.B
- type of second value.
- Direct Known Subclasses:
- Tuple2.List2, Tuple3
public class Tuple2<A,B>
- extends Object
A simple class to hold 2 values in a type-safe manner.
- Author:
- Sylvain
Tuple2
public Tuple2(A a,
B b)
nullInstance
public static final <A,B> Tuple2<A,B> nullInstance()
create
public static final <A,B> Tuple2<A,B> create(A a,
B b)
get0
public final A get0()
get1
public final B get1()
asList
public List<? extends Object> asList()
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2010 jOpenDocument All Rights Reserved.