public final class ParticipantUtils extends Object

Utilities for working with multiplayer participants.

Public Method Summary

static String
getParticipantId(ArrayList<Participant> participants, String playerId)

Public Methods

public static String getParticipantId (ArrayList<Participant> participants, String playerId)

Get the participant ID corresponding to a given player ID. If none of the provided participants represent the provided player, the return value will be null.

participants List of Participants to check.
playerId The player ID to find participant ID for.
  • The participant ID of the given player, or null if not found.