Class ParticipantId

java.lang.Object
be.theking90000.mumble.controller.core.ParticipantId

public final class ParticipantId extends Object
Logical identity of a participant, independent from transient connection identifiers.
  • Method Details

    • of

      public static ParticipantId of(String value)
      Creates an identifier from its wire representation.
      Parameters:
      value - non-blank participant identity, commonly a Minecraft player UUID
      Returns:
      an immutable identifier
      Throws:
      NullPointerException - if value is null
      IllegalArgumentException - if value is blank
    • value

      public String value()
      Returns the exact identifier supplied to of(String).
      Returns:
      the wire value
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      the wire value