Package org.openwms.common.location
Class Message.Builder
java.lang.Object
org.openwms.common.location.Message.Builder
- Enclosing class:
Message
Message
builder static inner class.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns aMessage
built from the parameters previously set.messageNo
(int val) Sets themessageNo
and returns a reference to this Builder so that the methods can be chained together.messageText
(String val) Sets themessageText
and returns a reference to this Builder so that the methods can be chained together.
-
Field Details
-
messageNo
private int messageNo -
messageText
-
-
Constructor Details
-
Builder
private Builder()
-
-
Method Details
-
messageNo
Sets themessageNo
and returns a reference to this Builder so that the methods can be chained together.- Parameters:
val
- themessageNo
to set- Returns:
- a reference to this Builder
-
messageText
Sets themessageText
and returns a reference to this Builder so that the methods can be chained together.- Parameters:
val
- themessageText
to set- Returns:
- a reference to this Builder
-
build
Returns aMessage
built from the parameters previously set.- Returns:
- a
Message
built with parameters of thisMessage.Builder
-