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
- Author:
- John Blum
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Stream<T>static longnullSafeCount(Stream<?> stream) static booleannullSafeIsEmpty(Stream<?> stream) Null-safe utility method used to determine whether the givenStreamis 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 givenStreamis empty. -
nullSafeStream
Utility method used to guard against nullStreams.
-