Class ReplaceFieldDataDecorator.Builder

    • Constructor Detail

      • Builder

        protected Builder()
    • Method Detail

      • replaceWith

        public ReplaceFieldDataDecorator.Builder replaceWith​(Object checkedObject,
                                                             Object replacingValue)
        Adds a replacement with checked value of replacing value.

        The instance of replacingValue could be an instance of Supplier.

        Parameters:
        checkedObject - Checked object
        replacingValue - The value replacing old value
        Returns:
        cascading self
      • replaceWith

        public ReplaceFieldDataDecorator.Builder replaceWith​(Predicate<? super DataField<?>> dataFieldPredicate,
                                                             Object replacingValue)
        Adds a replacement with Predicate of replacing value.

        The instance of replacingValue could be an instance of Supplier.

        Parameters:
        dataFieldPredicate - The instance of predication
        replacingValue - The value replacing old value
        Returns:
        cascading self