README: update Value examples for 0.6.0

This commit is contained in:
Paul Campbell 2018-07-28 20:23:17 +01:00
parent 42b4a7ec7c
commit 8506cbf489

View file

@ -180,11 +180,14 @@
final String result = Value.where(isTrue(), () -> TRUE, () -> FALSE);
final String result = Value.where(Condition.where(isTrue), () -> TRUE, () -> FALSE);
final Optional<String> result = Value.where(isTrue(), () -> TRUE);
final String result = Value.<String>where(isTrue())
.then(() -> TRUE)
.otherwise(() -> FALSE);
.not()
.then(() -> FALSE)
.otherwise(() -> TRUE);
#+END_SRC