public T getFirst ( ) { Optional < Rsp < T >> retval = values ( ) . stream ( ) . filter ( rsp -> rsp . getValue ( ) != null ) . findFirst ( ) ; return retval . isPresent ( ) ? retval . get ( ) . getValue ( ) : null ; }
Returns the first value in the response set . This is random but we try to return a non - null value first