public < T > T markPropertyAsSet ( String property , T value ) { setProperties . add ( property ) ; return value ; }
Marks the specified property as set and returns the value given as the second argument . This is meant to be used as a one - liner .