adt4j icon indicating copy to clipboard operation
adt4j copied to clipboard

Implement polymorphic updates

Open sviperll opened this issue 8 years ago • 0 comments

This should work...

    Optional<Integer> i = flag ? Optional.present(5) : Optional.missing();
    Optional<String> m = i.withValue("5"); // Generated updater method

sviperll avatar Nov 09 '15 16:11 sviperll