Class StreamUtils
java.lang.Object
org.springframework.data.gemfire.util.StreamUtils
The
StreamUtils
class is a abstract utility class for working with Streams
.- Since:
- 2.0.2
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Stream<T>
static long
nullSafeCount
(Stream<?> stream) static boolean
nullSafeIsEmpty
(Stream<?> stream) Null-safe utility method used to determine whether the givenStream
is empty.static <T> Stream<T>
nullSafeStream
(Stream<T> stream) Utility method used to guard against nullStreams
.
-
Constructor Details
-
StreamUtils
public StreamUtils()
-
-
Method Details
-
concat
-
nullSafeCount
-
nullSafeIsEmpty
Null-safe utility method used to determine whether the givenStream
is empty. -
nullSafeStream
Utility method used to guard against nullStreams
.
-