|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmondrian.util.Triple<T0,T1,T2>
public class Triple<T0,T1,T2>
Tuple of three values.
Because a triple implements equals(Object), hashCode()
and compareTo(mondrian.util.Triple), it can be used in any kind of
Collection.
| Field Summary | |
|---|---|
T0 |
v0
|
T1 |
v1
|
T2 |
v2
|
| Constructor Summary | |
|---|---|
Triple(T0 v0,
T1 v1,
T2 v2)
Creates a Triple. |
|
| Method Summary | ||
|---|---|---|
int |
compareTo(Triple<T0,T1,T2> that)
|
|
boolean |
equals(Object obj)
|
|
int |
hashCode()
|
|
static
|
iter0(Iterable<Triple<T0,T1,T2>> iterable)
Returns an iterable over the slice #0 of an iterable. |
|
static
|
iter1(Iterable<Triple<T0,T1,T2>> iterable)
Returns an iterable over the slice #1 of an iterable. |
|
static
|
iter2(Iterable<Triple<T0,T1,T2>> iterable)
Returns an iterable over the slice #2 of an iterable. |
|
static
|
of(T0 v0,
T1 v1,
T2 v2)
Creates a Triple. |
|
String |
toString()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public T0 v0
public T1 v1
public T2 v2
| Constructor Detail |
|---|
public Triple(T0 v0,
T1 v1,
T2 v2)
v0 - Value #0v1 - Value #1v2 - Value #2| Method Detail |
|---|
public static <T0,T1,T2> Triple<T0,T1,T2> of(T0 v0,
T1 v1,
T2 v2)
v0 - Value #0v1 - Value #1v2 - Value #2
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic int compareTo(Triple<T0,T1,T2> that)
compareTo in interface Comparable<Triple<T0,T1,T2>>public String toString()
toString in class Objectpublic static <T0,T1,T2> Iterable<T0> iter0(Iterable<Triple<T0,T1,T2>> iterable)
T0 - Type #0T1 - Type #1T2 - Type #2iterable - Iterable over triples
public static <T0,T1,T2> Iterable<T1> iter1(Iterable<Triple<T0,T1,T2>> iterable)
T0 - Type #0T1 - Type #1T2 - Type #2iterable - Iterable over triples
public static <T0,T1,T2> Iterable<T2> iter2(Iterable<Triple<T0,T1,T2>> iterable)
T0 - Type #0T1 - Type #1T2 - Type #2iterable - Iterable over triples
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||