condition

Checks the given condition and performs the specified operation on the ItemBuilder if the condition is true.

Return

the updated ItemBuilder if the condition is true, otherwise the original ItemBuilder

Parameters

condition

the condition to be checked

consumer

the operation to be performed on the ItemBuilder if the condition is true