Example #1
0
  static int a(TurnBasedMatch var0, String var1) {
    ArrayList var4 = var0.getParticipants();
    int var3 = var4.size();

    for (int var2 = 0; var2 < var3; ++var2) {
      Participant var5 = (Participant) var4.get(var2);
      if (var5.getParticipantId().equals(var1)) {
        return var5.getStatus();
      }
    }

    throw new IllegalStateException(
        "Participant " + var1 + " is not in match " + var0.getMatchId());
  }
    static int a(TurnBasedMatch turnbasedmatch, String s)
    {
        ArrayList arraylist = turnbasedmatch.getParticipants();
        int j = arraylist.size();
        for (int i = 0; i < j; i++)
        {
            Participant participant = (Participant)arraylist.get(i);
            if (participant.getParticipantId().equals(s))
            {
                return participant.getStatus();
            }
        }

        throw new IllegalStateException((new StringBuilder()).append("Participant ").append(s).append(" is not in match ").append(turnbasedmatch.getMatchId()).toString());
    }