Class ParticipantSpec.Builder

java.lang.Object
be.theking90000.mumble.controller.spaces.ParticipantSpec.Builder
Enclosing class:
ParticipantSpec

public static final class ParticipantSpec.Builder extends Object
Builder for an immutable participant spec.
  • Method Details

    • serverMute

      public ParticipantSpec.Builder serverMute(boolean value)
      Sets the desired server-mute state.
      Parameters:
      value - whether the server should prevent speaking
      Returns:
      this builder
    • serverDeaf

      public ParticipantSpec.Builder serverDeaf(boolean value)
      Sets the desired server-deaf state.
      Parameters:
      value - whether the server should prevent hearing voice
      Returns:
      this builder
    • build

      public ParticipantSpec build()
      Builds an immutable complete specification.
      Returns:
      the participant specification
      Throws:
      NullPointerException - if a required value is null
      IllegalArgumentException - if the display name is blank