stream()… I chose Collections. emptySet() arbitrarily as the default value in case collection is null . This will result in the stream() method call producing an empty Stream if collection is null.
stream()… I chose Collections. emptySet() arbitrarily as the default value in case collection is null . This will result in the stream() method call producing an empty Stream if collection is null.