private final Boolean value;
public Goolean(boolean theValue) {
value = theValue;
}
alternative.accept(null);
return new Goolean(true);
}
}
o.getLiczby().isEmptyG().or( s -> {
return
}
}
}).whenTrue(s->{System.out.println("asd");});
public class Goolean{public Goolean
private final Boolean value;
public Goolean(boolean theValue) {
value = theValue;
}
whenTrue(Consumeror(Functionalternative){
if( value ){if(value){
alternative.accept(null);
return new Goolean(true);
}
return this;\n }\n \n public Goolean whenFalse(Consumerreturn or(new Goolean(alternative.apply(value)));alternative){\n if( !value ){\n alternative.accept(null);\n }\n return this;\n }\n \n public Goolean or(Goolean other){ \n return or(other.value);\n }\n \n public Goolean or(boolean other){ \n return new Goolean(value || other);\n }\n \n public Boolean getValue(){\n return value;\n }\n \n public Goolean and(boolean other){\n return new Goolean(value && other);\n }\n \n public Goolean and(Goolean other){\n return and(other.value);\n }\n \n public Goolean or(Function alternative){\n
}
\n public Goolean and(Function/////alternative){\n
o.getLiczby().isEmptyG().or( s -> {
returnand(new Goolean(alternative.apply(value)));sthFun();
}
}
}).whenTrue(s->{System.out.println("asd");});