Package org.keycloak.models.map.common
Class StreamUtils
- java.lang.Object
- 
- org.keycloak.models.map.common.StreamUtils
 
- 
 public class StreamUtils extends Object - Author:
- hmlnarik
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classStreamUtils.AbstractToPairSpliterator<K,V,M>static classStreamUtils.Pair<T1,T2>
 - 
Constructor SummaryConstructors Constructor Description StreamUtils()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description 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.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.
 
- 
- 
- 
Method Detail- 
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:
 
 
- 
 
-