Facebook
From Gracious Water Vole, 9 Years ago, written in Java.
This paste is a reply to Untitled from Abrupt Owl - view diff
Embed
Download Paste or View Raw
Hits: 724
  1. public Goolean or(Function<Boolean,Boolean> alternative){
  2.         if(value){
  3.             return new Goolean(true);
  4.         }
  5.         return or(new Goolean(alternative.apply(value)));
  6.     }
  7.     /////
  8.  
  9. o.getLiczby().isEmptyG().or( s -> {
  10.             return sthFun();
  11.         }).whenTrue(s->{System.out.println("asd");});