Files
java-core-examples/optional/output/07-streaminterop.txt
T

17 lines
499 B
Plaintext

filter+get : [a, c]
flatMap(::stream) : [a, c]
stream sizes : present=1 empty=0
findFirst hit : Optional[8]
findFirst miss : Optional.empty
max : Optional[pune]
OptionalInt : OptionalInt[9] getAsInt=9
OptionalDouble : OptionalDouble.empty orElse(-1)=-1.0
or() chain, cache hits:
consulted cache
result = Optional[from-cache]
or() chain, cache and db miss:
consulted cache
consulted database
consulted config
result = Optional[from-config]