Uses of Class
com.github.andrewoma.dexx.collection.Pair
-
Packages that use Pair Package Description com.github.andrewoma.dexx.collection Dexx collections are a port of Scala's immutable, persistent collection classes to pure Java.com.github.andrewoma.dexx.collection.internal.hashmap com.github.andrewoma.dexx.collection.internal.redblack -
-
Uses of Pair in com.github.andrewoma.dexx.collection
Fields in com.github.andrewoma.dexx.collection with type parameters of type Pair Modifier and Type Field Description private CompactHashMap<K,Pair<K,V>>
HashMap. compactHashMap
(package private) java.util.Iterator<Pair<K,Pair<K,V>>>
HashMap.Itr. iterator
(package private) java.util.Iterator<Pair<K,Pair<K,V>>>
HashMap.Itr. iterator
Methods in com.github.andrewoma.dexx.collection that return Pair Modifier and Type Method Description @Nullable Pair<K,V>
SortedMap. first()
Returns the first entry in the map ornull
if the map is empty.@Nullable Pair<K,V>
TreeMap. first()
@Nullable Pair<K,V>
SortedMap. last()
Returns the last entry in the map ornull
if the map is empty.@Nullable Pair<K,V>
TreeMap. last()
Pair<K,V>
HashMap.Itr. next()
private static <K,V>
Pair<K,V>Maps. p(K k, V v)
private static <K,V>
Pair<K,V>SortedMaps. p(K k, V v)
protected @NotNull Pair<Vector<E>,Vector<E>>
Vector. splitAt(int n)
private Pair<K,V>
TreeMap. toPair(Tree<K,V> tree)
Methods in com.github.andrewoma.dexx.collection that return types with arguments of type Pair Modifier and Type Method Description static <K,V>
@NotNull Builder<Pair<K,V>,Map<K,V>>Maps. builder()
static <K extends java.lang.Comparable<? super K>,V>
@NotNull Builder<Pair<K,V>,SortedMap<K,V>>SortedMaps. builder()
static <K,V>
@NotNull Builder<Pair<K,V>,SortedMap<K,V>>SortedMaps. builder(java.util.Comparator<? super K> comparator)
static <K,V>
@NotNull BuilderFactory<Pair<K,V>,DerivedKeyHashMap<K,V>>DerivedKeyHashMap. factory(KeyFunction<K,V> keyFunction)
static <K,V>
@NotNull BuilderFactory<Pair<K,V>,HashMap<K,V>>HashMap. factory()
static <K,V>
@NotNull BuilderFactory<Pair<K,V>,Map<K,V>>Maps. factory()
static <K extends java.lang.Comparable<? super K>,V>
@NotNull BuilderFactory<Pair<K,V>,SortedMap<K,V>>SortedMaps. factory()
static <K,V>
@NotNull BuilderFactory<Pair<K,V>,SortedMap<K,V>>SortedMaps. factory(java.util.Comparator<? super K> comparator)
static <K,V>
@NotNull BuilderFactory<Pair<K,V>,TreeMap<K,V>>TreeMap. factory(java.util.Comparator<? super K> ordering, KeyFunction<K,V> keyFunction)
@NotNull java.util.Iterator<Pair<K,V>>
DerivedKeyHashMap. iterator()
@NotNull java.util.Iterator<Pair<K,V>>
HashMap. iterator()
@NotNull java.util.Iterator<Pair<K,V>>
TreeMap. iterator()
private KeyFunction<K,Pair<K,V>>
HashMap. keyFunction()
Methods in com.github.andrewoma.dexx.collection with parameters of type Pair Modifier and Type Method Description private static <K,V>
Map<K,V>Maps. construct(Pair<K,V>... pairs)
private static <K extends java.lang.Comparable<? super K>,V>
SortedMap<K,V>SortedMaps. construct(Pair<K,V>... pairs)
private static <K,V>
SortedMap<K,V>SortedMaps. construct(java.util.Comparator<? super K> comparator, Pair<K,V>... pairs)
static <K,V>
@NotNull Map<K,V>Maps. copyOf(Pair<K,V>[] pairs)
static <K extends java.lang.Comparable<? super K>,V>
@NotNull SortedMap<K,V>SortedMaps. copyOf(Pair<K,V>[] pairs)
static <K,V>
@NotNull SortedMap<K,V>SortedMaps. copyOf(java.util.Comparator<? super K> comparator, Pair<K,V>[] pairs)
Method parameters in com.github.andrewoma.dexx.collection with type arguments of type Pair Modifier and Type Method Description static <K,V>
@NotNull Map<K,V>Maps. copyOf(java.lang.Iterable<Pair<K,V>> iterable)
static <K,V>
@NotNull Map<K,V>Maps. copyOf(java.util.Iterator<Pair<K,V>> iterator)
static <K extends java.lang.Comparable<? super K>,V>
@NotNull SortedMap<K,V>SortedMaps. copyOf(java.lang.Iterable<Pair<K,V>> iterable)
static <K,V>
@NotNull SortedMap<K,V>SortedMaps. copyOf(java.util.Comparator<? super K> comparator, java.lang.Iterable<Pair<K,V>> iterable)
static <K,V>
@NotNull SortedMap<K,V>SortedMaps. copyOf(java.util.Comparator<? super K> comparator, java.util.Iterator<Pair<K,V>> iterator)
static <K extends java.lang.Comparable<? super K>,V>
@NotNull SortedMap<K,V>SortedMaps. copyOf(java.util.Iterator<Pair<K,V>> iterator)
static <K,V>
@NotNull Map<K,V>Maps. copyOfTraversable(Traversable<Pair<K,V>> traversable)
static <K extends java.lang.Comparable<? super K>,V>
@NotNull SortedMap<K,V>SortedMaps. copyOfTraversable(Traversable<Pair<K,V>> traversable)
static <K,V>
@NotNull SortedMap<K,V>SortedMaps. copyOfTraversable(java.util.Comparator<? super K> comparator, Traversable<Pair<K,V>> traversable)
<U> void
DerivedKeyHashMap. forEach(@NotNull Function<Pair<K,V>,U> f)
<U> void
HashMap. forEach(@NotNull Function<Pair<K,V>,U> f)
<U> void
TreeMap. forEach(@NotNull Function<Pair<K,V>,U> f)
Constructor parameters in com.github.andrewoma.dexx.collection with type arguments of type Pair Constructor Description HashMap(CompactHashMap<K,Pair<K,V>> compactHashMap)
Itr(java.util.Iterator<Pair<K,Pair<K,V>>> iterator)
Itr(java.util.Iterator<Pair<K,Pair<K,V>>> iterator)
-
Uses of Pair in com.github.andrewoma.dexx.collection.internal.hashmap
Fields in com.github.andrewoma.dexx.collection.internal.hashmap declared as Pair Modifier and Type Field Description protected Pair<K,V>
HashMap1. kv
private Pair<K,V>
CompactHashMapIterator. next
Fields in com.github.andrewoma.dexx.collection.internal.hashmap with type parameters of type Pair Modifier and Type Field Description private java.util.Iterator<Pair<K,V>>
CompactHashMapIterator. subIterator
Methods in com.github.andrewoma.dexx.collection.internal.hashmap that return Pair Modifier and Type Method Description private Pair<K,V>
HashMap1. ensureKv()
Pair<K,V>
CompactHashMapIterator. next()
Pair<K,V>
ListMapIterator. next()
Methods in com.github.andrewoma.dexx.collection.internal.hashmap that return types with arguments of type Pair Modifier and Type Method Description static <K,V>
@NotNull BuilderFactory<Pair<K,V>,ListMap<K,V>>ListMap. factory()
java.util.Iterator<Pair<K,V>>
CompactHashMap. iterator(KeyFunction<K,V> kf)
java.util.Iterator<Pair<K,V>>
HashMap1. iterator(KeyFunction<K,V> kf)
java.util.Iterator<Pair<K,V>>
HashMapCollision1. iterator(KeyFunction<K,V> kf)
java.util.Iterator<Pair<K,V>>
HashTrieMap. iterator(KeyFunction<K,V> kf)
@NotNull java.util.Iterator<Pair<K,V>>
ListMap. iterator()
Methods in com.github.andrewoma.dexx.collection.internal.hashmap with parameters of type Pair Modifier and Type Method Description protected CompactHashMap<K,V>
CompactHashMap. updated0(K key, int hash, int level, V value, Pair<K,V> kv, KeyFunction<K,V> keyFunction)
protected CompactHashMap<K,V>
HashMap1. updated0(K key, int hash, int level, V value, Pair<K,V> kv, KeyFunction<K,V> keyFunction)
protected CompactHashMap<K,V>
HashMapCollision1. updated0(K key, int hash, int level, V value, Pair<K,V> kv, KeyFunction<K,V> keyFunction)
protected CompactHashMap<K,V>
HashTrieMap. updated0(K key, int hash, int level, V value, Pair<K,V> kv, KeyFunction<K,V> keyFunction)
Method parameters in com.github.andrewoma.dexx.collection.internal.hashmap with type arguments of type Pair Modifier and Type Method Description <U> void
CompactHashMap. forEach(Function<Pair<K,V>,U> f, KeyFunction<K,V> keyFunction)
<U> void
HashMap1. forEach(Function<Pair<K,V>,U> f, KeyFunction<K,V> keyFunction)
<U> void
HashMapCollision1. forEach(Function<Pair<K,V>,U> f, KeyFunction<K,V> keyFunction)
<U> void
HashTrieMap. forEach(Function<Pair<K,V>,U> f, KeyFunction<K,V> keyFunction)
<U> void
ListMap. forEach(@NotNull Function<Pair<K,V>,U> f)
Constructors in com.github.andrewoma.dexx.collection.internal.hashmap with parameters of type Pair Constructor Description HashMap1(K key, int hash, V value, Pair<K,V> kv)
-
Uses of Pair in com.github.andrewoma.dexx.collection.internal.redblack
Methods in com.github.andrewoma.dexx.collection.internal.redblack that return Pair Modifier and Type Method Description protected Pair<K,V>
EntriesIterator. nextResult(Tree<K,V> tree)
Methods in com.github.andrewoma.dexx.collection.internal.redblack that return types with arguments of type Pair Modifier and Type Method Description java.util.Iterator<Pair<K,V>>
RedBlackTree. iterator(Tree<K,V> tree)
Method parameters in com.github.andrewoma.dexx.collection.internal.redblack with type arguments of type Pair Modifier and Type Method Description <U> void
RedBlackTree. forEach(Tree<K,V> tree, Function<Pair<K,V>,U> f)
-