org.eclipse.xtext.util
Class Tuples

java.lang.Object
  extended by org.eclipse.xtext.util.Tuples

public final class Tuples
extends java.lang.Object


Method Summary
static
<A,B> Pair<A,B>
create(A a, B b)
           
static
<A,B,C> Triple<A,B,C>
create(A a, B b, C c)
           
static
<A,B> Pair<A,B>
pair(A a, B b)
           
static
<A,B> java.util.Map<A,B>
toMap(Pair<A,B>... pairs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

pair

public static <A,B> Pair<A,B> pair(A a,
                                   B b)

create

public static <A,B> Pair<A,B> create(A a,
                                     B b)

create

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

toMap

public static <A,B> java.util.Map<A,B> toMap(Pair<A,B>... pairs)