Interface HasCall<T>

    • Method Detail

      • call

        default T call​(Consumer<T> procedure)
        Calls the specified Consumer with this object as the parameter. This method exists so that methods can operate on an object without breaking the flow.
        Parameters:
        procedure - the procedure to call
        Returns:
        a reference to this
      • call

        default T call​(Runnable procedure)
        Calls the specified Runnable. This method exists so that methods can operate on an object without breaking the flow.
        Parameters:
        procedure - the procedure to call
        Returns:
        a reference to this