public Try < T > orElse ( Supplier < Try < T > > defaultValue ) { try { return isSuccess ( ) ? this : defaultValue . get ( ) ; } catch ( RuntimeException e ) { return new Failure <> ( e ) ; } }
Returns this Try if it s a Success or the given default argument if this is a Failure .