Uses of Class
org.eclipse.xtext.xbase.lib.Pair
Packages that use Pair
-
Uses of Pair in org.eclipse.xtext.xbase.lib
Methods in org.eclipse.xtext.xbase.lib that return PairModifier and TypeMethodDescriptionstatic <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) Methods in org.eclipse.xtext.xbase.lib that return types with arguments of type PairModifier and TypeMethodDescriptionReturns 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.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 PairModifier and TypeMethodDescriptionstatic <K,V> HashMap<K, V> CollectionLiterals.newHashMap(Pair<? extends K, ? extends V>... initial) Creates a mutableHashMapinstance 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 mutableLinkedHashMapinstance 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 mutableTreeMapinstance 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.