README: update Value examples for 0.6.0
This commit is contained in:
parent
42b4a7ec7c
commit
8506cbf489
1 changed files with 5 additions and 2 deletions
|
@ -180,11 +180,14 @@
|
||||||
|
|
||||||
final String result = Value.where(isTrue(), () -> TRUE, () -> FALSE);
|
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 Optional<String> result = Value.where(isTrue(), () -> TRUE);
|
||||||
|
|
||||||
final String result = Value.<String>where(isTrue())
|
final String result = Value.<String>where(isTrue())
|
||||||
.then(() -> TRUE)
|
.not()
|
||||||
.otherwise(() -> FALSE);
|
.then(() -> FALSE)
|
||||||
|
.otherwise(() -> TRUE);
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue