Class Message.Builder

java.lang.Object
org.openwms.common.location.Message.Builder
Enclosing class:
Message

public static final class Message.Builder extends Object
Message builder static inner class.
  • Field Details

    • messageNo

      private int messageNo
    • messageText

      private String messageText
  • Constructor Details

    • Builder

      private Builder()
  • Method Details

    • messageNo

      public Message.Builder messageNo(int val)
      Sets the messageNo and returns a reference to this Builder so that the methods can be chained together.
      Parameters:
      val - the messageNo to set
      Returns:
      a reference to this Builder
    • messageText

      public Message.Builder messageText(String val)
      Sets the messageText and returns a reference to this Builder so that the methods can be chained together.
      Parameters:
      val - the messageText to set
      Returns:
      a reference to this Builder
    • build

      public Message build()
      Returns a Message built from the parameters previously set.
      Returns:
      a Message built with parameters of this Message.Builder