Uses of Class
org.eclipse.xtext.xbase.lib.Pair

Packages that use Pair
Package
Description
 
  • Uses of Pair in org.eclipse.xtext.xbase.lib

    Methods in org.eclipse.xtext.xbase.lib that return Pair
    Modifier and Type
    Method
    Description
    static <K, V> Pair<K,V>
    Pair.of(K k, V v)
    Creates a new instance with the given key and value.
    static <A, B> Pair<A,B>
    ObjectExtensions.operator_mappedTo(A a, B b)
    The mappedTo operator yields a Pair with a as the key and b as its value.
    Methods in org.eclipse.xtext.xbase.lib that return types with arguments of type Pair
    Modifier and Type
    Method
    Description
    static <A> Iterable<Pair<Integer,A>>
    IterableExtensions.indexed(Iterable<? extends A> iterable)
    Returns an Iterable of Pairs where the nth pair is created by taking the nth element of the source as the value its 0-based index as the key.
    static <A> Iterator<Pair<Integer,A>>
    IteratorExtensions.indexed(Iterator<? extends A> iterator)
    Returns an Iterator of Pairs where the nth pair is created by taking the nth element of the source as the value and its 0-based index as the key.
    Methods in org.eclipse.xtext.xbase.lib with parameters of type Pair
    Modifier and Type
    Method
    Description
    static <K, V> HashMap<K,V>
    CollectionLiterals.newHashMap(Pair<? extends K,? extends V>... initial)
    Creates a mutable HashMap instance containing the given initial entries.
    static <K, V> Map<K,V>
    CollectionLiterals.newImmutableMap(Pair<? extends K,? extends V>... entries)
    Returns an immutable map containing the given entries.
    static <K, V> LinkedHashMap<K,V>
    CollectionLiterals.newLinkedHashMap(Pair<? extends K,? extends V>... initial)
    Creates a mutable LinkedHashMap instance containing the given initial entries.
    static <K, V> TreeMap<K,V>
    CollectionLiterals.newTreeMap(Comparator<? super K> comparator, Pair<? extends K,? extends V>... initial)
    Creates a mutable TreeMap instance containing the given initial entries.
    static <K, V> V
    MapExtensions.operator_add(Map<K,V> map, Pair<? extends K,? extends V> entry)
    Add the given pair into the map.
    static <K, V> Map<K,V>
    MapExtensions.operator_minus(Map<K,V> left, Pair<? extends K,? extends V> right)
    Remove the given pair from a given map for obtaining a new map.
    static <K, V> Map<K,V>
    MapExtensions.operator_plus(Map<K,V> left, Pair<? extends K,? extends V> right)
    Add the given pair to a given map for obtaining a new map.
    static <K, V> boolean
    MapExtensions.operator_remove(Map<K,V> map, Pair<? extends K,? extends V> entry)
    Remove the given pair into the map.