Interface Premise


public interface Premise
Result of a previously evaluated condition. Used to fluently chain API calls like Optionals.ifPresent(). For example:

   ifPresent(getStory(), Story::tell)
       .or(() -> ifPresent(getJoke(), Joke::tell))
       .orElse(() -> print("can't tell"));
 
Since:
1.14