public static < T , C extends Collection < T > > Stream < T > ifExistIntoStream ( C collection ) { return getOptional ( collection ) . map ( Collection :: stream ) . orElseGet ( Stream :: empty ) ; }
If exist into stream stream .