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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns aMessagebuilt from the parameters previously set.messageNo(int val) Sets themessageNoand returns a reference to this Builder so that the methods can be chained together.messageText(String val) Sets themessageTextand 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 themessageNoand returns a reference to this Builder so that the methods can be chained together.- Parameters:
val- themessageNoto set- Returns:
- a reference to this Builder
-
messageText
Sets themessageTextand returns a reference to this Builder so that the methods can be chained together.- Parameters:
val- themessageTextto set- Returns:
- a reference to this Builder
-
build
Returns aMessagebuilt from the parameters previously set.- Returns:
- a
Messagebuilt with parameters of thisMessage.Builder
-