|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.javatools.util.Tuple<T1,T2>
public class Tuple<T1,T2>
A generic immutable 2-tuple. The most common term for a 2-tuple is "pair"
Constructor Summary | |
---|---|
Tuple(T1 object1,
T2 object2)
Creates a new 2-tuple. |
Method Summary | ||
---|---|---|
boolean |
equals(java.lang.Object object)
Gets whether this tuple equals an object. |
|
int |
hashCode()
Gets the hash code of this tuple. |
|
T1 |
object1()
Gets the first object of this tuple. |
|
T2 |
object2()
Gets the second object of this tuple. |
|
java.lang.String |
toString()
|
|
static
|
tuple(T1 object1,
T2 object2)
Creates a new 2-tuple. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Tuple(T1 object1, T2 object2)
object1
- The first object of the tuple.object2
- The second object of the tuple.Method Detail |
---|
public static <T1,T2> Tuple<T1,T2> tuple(T1 object1, T2 object2)
object1
- The first object of the tuple.object2
- The second object of the tuple.public T1 object1()
public T2 object2()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |