public class ObjectStreamUtils extends Object
Constructor and Description |
---|
ObjectStreamUtils() |
Modifier and Type | Method and Description |
---|---|
static <T> ObjectStream<T> |
concatenateObjectStream(Collection<ObjectStream<T>> streams)
Creates a single concatenated ObjectStream from multiple individual
ObjectStreams with the same type.
|
static <T> ObjectStream<T> |
concatenateObjectStream(ObjectStream<T>... streams)
Creates a single concatenated ObjectStream from multiple individual
ObjectStreams with the same type.
|
static <T> ObjectStream<T> |
createObjectStream(Collection<T> collection)
Creates an
ObjectStream form a collection. |
static <T> ObjectStream<T> |
createObjectStream(T... array)
Creates an
ObjectStream form an array. |
@SafeVarargs public static <T> ObjectStream<T> createObjectStream(T... array)
ObjectStream
form an array.T
- array
- public static <T> ObjectStream<T> createObjectStream(Collection<T> collection)
ObjectStream
form a collection.T
- collection
- public static <T> ObjectStream<T> concatenateObjectStream(Collection<ObjectStream<T>> streams)
streams
- @SafeVarargs public static <T> ObjectStream<T> concatenateObjectStream(ObjectStream<T>... streams)
streams
- Copyright © 2020 The Apache Software Foundation. All rights reserved.