From 8506cbf489fa65f5f665b60fd45da8649507c674 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sat, 28 Jul 2018 20:23:17 +0100 Subject: [PATCH] README: update Value examples for 0.6.0 --- README.org | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.org b/README.org index 5f293fa..07983ee 100644 --- a/README.org +++ b/README.org @@ -180,11 +180,14 @@ final String result = Value.where(isTrue(), () -> TRUE, () -> FALSE); + final String result = Value.where(Condition.where(isTrue), () -> TRUE, () -> FALSE); + final Optional result = Value.where(isTrue(), () -> TRUE); final String result = Value.where(isTrue()) - .then(() -> TRUE) - .otherwise(() -> FALSE); + .not() + .then(() -> FALSE) + .otherwise(() -> TRUE); #+END_SRC