Index
All Classes|All Packages
A
- accept(BiConsumer<? super T1, ? super T2>) - Method in class ch.rfin.util.Pair
-
Use the binary consumer to consume this pair.
- apply(BiFunction<? super T1, ? super T2, R>) - Method in class ch.rfin.util.Pair
-
Apply the binary function to this pair.
B
- biConsumer(Consumer<Pair<T1, T2>>) - Static method in class ch.rfin.util.Pairs
-
Takes a unary consumer of pairs and returns a binary consumer.
- biFunction(Function<Pair<T1, T2>, R>) - Static method in class ch.rfin.util.Pairs
-
Takes a unary function from pairs and returns a binary function.
- biPredicate(Predicate<Pair<T1, T2>>) - Static method in class ch.rfin.util.Pairs
-
Takes a unary predicate from pairs and returns a binary predicate.
C
- ch.rfin.util - package ch.rfin.util
- consumer(BiConsumer<T1, T2>) - Static method in class ch.rfin.util.Pairs
-
Takes a binary consumer and returns a consumer that is unary for pairs.
E
- equals(Object) - Method in class ch.rfin.util.Pair
F
- function(BiFunction<T1, T2, R>) - Static method in class ch.rfin.util.Pairs
-
Takes a binary function and returns a function that is unary for pairs.
G
- get_1() - Method in class ch.rfin.util.Pair
-
(a,b).get_1() = a. - get_2() - Method in class ch.rfin.util.Pair
-
(a,b).get_2() = b.
H
- hashCode() - Method in class ch.rfin.util.Pair
M
- map(Function<? super T1, U>, Function<? super T2, R>) - Method in class ch.rfin.util.Pair
-
Allows
q = p.map(f, g);instead ofq = Pair.of(f.apply(p._1), g.apply(p._2)). - map_1(Function<? super T1, U>) - Method in class ch.rfin.util.Pair
-
Allows
q = p.map_1(f);instead ofq = Pair.of(f.apply(p._1), p._2). - map_2(Function<? super T2, U>) - Method in class ch.rfin.util.Pair
-
Allows
q = p.map_2(f);instead ofq = Pair.of(p._1, f.apply(p._2)).
O
- of(T) - Static method in class ch.rfin.util.Pair
-
Special case factory method for making a duplicate pair (
x -> (x,x)). - of(T1, T2) - Static method in class ch.rfin.util.Pair
-
Factory method.
P
- pair(T) - Static method in class ch.rfin.util.Pair
-
More descriptive alias for
Pair.of(Object); useful for static imports. - pair(T1, T2) - Static method in class ch.rfin.util.Pair
-
More descriptive alias for
Pair.of(Object, Object); useful for static imports. - Pair<T1,T2> - Class in ch.rfin.util
-
A Pair of values.
- pairFrom(List<T>) - Static method in class ch.rfin.util.Pairs
-
Converts a list to a pair.
- pairFrom(Map.Entry<T, S>) - Static method in class ch.rfin.util.Pairs
-
Converts a Map.Entry to a pair.
- pairs(List<T>) - Static method in class ch.rfin.util.Pairs
-
Converts a list to a list of pairs.
- pairs(Map<K, V>) - Static method in class ch.rfin.util.Pairs
-
Converts a Map to a list of pairs.
- Pairs - Class in ch.rfin.util
-
Utilities for working with pairs.
- Pairs() - Constructor for class ch.rfin.util.Pairs
- predicate(BiPredicate<T1, T2>) - Static method in class ch.rfin.util.Pairs
-
Takes a binary predicate and returns a predicate that is unary for pairs.
S
T
- test(BiPredicate<? super T1, ? super T2>) - Method in class ch.rfin.util.Pair
-
Use the binary predicate to test this pair.
- toMap(Collection<Pair<K, V>>) - Static method in class ch.rfin.util.Pairs
-
Converts a collection of pairs to a Map.
- toString() - Method in class ch.rfin.util.Pair
W
- with_1(U) - Method in class ch.rfin.util.Pair
-
(a,b).with_1(c) = (c,b) - with_2(U) - Method in class ch.rfin.util.Pair
-
(a,b).with_2(c) = (a,c) - withId(Function<T, R>) - Static method in class ch.rfin.util.Pairs
-
Takes a function and returns a function to pairs, where the first element is the original input and the second element is the mapping.
_
A B C E F G H M O P S T W _All Classes|All Packages