Class ParticipantSpec.Builder
java.lang.Object
be.theking90000.mumble.controller.spaces.ParticipantSpec.Builder
- Enclosing class:
- ParticipantSpec
Builder for an immutable participant spec.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds an immutable complete specification.serverDeaf(boolean value) Sets the desired server-deaf state.serverMute(boolean value) Sets the desired server-mute state.
-
Method Details
-
serverMute
Sets the desired server-mute state.- Parameters:
value- whether the server should prevent speaking- Returns:
- this builder
-
serverDeaf
Sets the desired server-deaf state.- Parameters:
value- whether the server should prevent hearing voice- Returns:
- this builder
-
build
Builds an immutable complete specification.- Returns:
- the participant specification
- Throws:
NullPointerException- if a required value isnullIllegalArgumentException- if the display name is blank
-