Interface RequestBuilder

  • All Superinterfaces:
    io.github.henryssondaniel.teacup.protocol.Builder<Request>, io.github.henryssondaniel.teacup.protocol.NodeBuilder<Request,​Request,​RequestBuilder>

    public interface RequestBuilder
    extends io.github.henryssondaniel.teacup.protocol.NodeBuilder<Request,​Request,​RequestBuilder>
    Request builder.
    Since:
    1.0
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      RequestBuilder setCommand​(io.github.henryssondaniel.teacup.core.assertion.GenericObjectAssert<? super java.lang.Byte,​?> command)
      Sets the command.
      RequestBuilder setCommandAsString​(io.github.henryssondaniel.teacup.core.assertion.GenericStringAssert<?> commandAsString)
      Sets the command as string.
      • Methods inherited from interface io.github.henryssondaniel.teacup.protocol.Builder

        build
      • Methods inherited from interface io.github.henryssondaniel.teacup.protocol.NodeBuilder

        setAssertion
    • Method Detail

      • setCommand

        RequestBuilder setCommand​(io.github.henryssondaniel.teacup.core.assertion.GenericObjectAssert<? super java.lang.Byte,​?> command)
        Sets the command.
        Parameters:
        command - the command
        Returns:
        the request builder
        Since:
        1.0
      • setCommandAsString

        RequestBuilder setCommandAsString​(io.github.henryssondaniel.teacup.core.assertion.GenericStringAssert<?> commandAsString)
        Sets the command as string.
        Parameters:
        commandAsString - the command as string
        Returns:
        the request builder
        Since:
        1.0