Package org.keycloak.models.map.common
Class StreamUtils
java.lang.Object
org.keycloak.models.map.common.StreamUtils
- Author:
- hmlnarik
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic final class
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic <K,V> Stream<StreamUtils.Pair<K, V>> leftInnerJoinIterable(Stream<K> stream, Function<? super K, ? extends Iterable<V>> mapper) Creates a stream of pairs that join two streams.static <K,V> Stream<StreamUtils.Pair<K, V>> leftInnerJoinStream(Stream<K> stream, Function<? super K, Stream<V>> mapper) Creates a stream of pairs that join two streams.
- 
Constructor Details- 
StreamUtilspublic StreamUtils()
 
- 
- 
Method Details- 
leftInnerJoinStreampublic static <K,V> Stream<StreamUtils.Pair<K,V>> leftInnerJoinStream(Stream<K> stream, Function<? super K, Stream<V>> mapper) Creates a stream of pairs that join two streams. For each element k from thestreamand each element v obtained from the stream returned by themapperfor k, generates a stream of pairs (k, v).Effectively performs equivalent of a LEFT INNER JOINSQL operation on streams.- Type Parameters:
- K-
- V-
- Parameters:
- stream-
- mapper-
- Returns:
 
- 
leftInnerJoinIterablepublic static <K,V> Stream<StreamUtils.Pair<K,V>> leftInnerJoinIterable(Stream<K> stream, Function<? super K, ? extends Iterable<V>> mapper) Creates a stream of pairs that join two streams. For each element k from thestreamand each element v obtained from theIterablereturned by themapperfor k, generates a stream of pairs (k, v).Effectively performs equivalent of a LEFT INNER JOINSQL operation on streams.- Type Parameters:
- K-
- V-
- Parameters:
- stream-
- mapper-
- Returns:
 
 
-