withValue(Action1)
executes an action with the value;match(Predicate)
returns a Node with the value if the predicate is true; a Node with null otherwisemap(Mapper)
returns a mapped value defined by Mapper;orAlernative(alternativeValue)
returns a Node containing the value if it is not null; a Node with alternativeValue otherwiseisAbsent()
returnsfalse
if the value is notnull
;true
otherwise;value(alternativeValue)
returns the value contained by the node if it is present; alternativeValue otherwise;
ifNotPresent(Action)
changed toifAbsent(Action)
exists()
changed toisPresent()
- Node_ class should match AutoValue class;
- Node_ methods' visibility should match the corresponding property's visibility
Initial release. Supports AutoValue 1.4-rc3.