Package org.apache.camel.util
Class StreamUtils
java.lang.Object
org.apache.camel.util.StreamUtils
-
Method Summary
-
Method Details
-
stream
Creates a stream on the given collection if it is not null- Parameters:
value
- the collection- Returns:
- A stream of elements or an empty stream if the collection is null
-
stream
Creates a stream of entries on the given Map if it is not null- Parameters:
value
- the map- Returns:
- A stream of entries or an empty stream if the collection is null
-