jbarrier

edu.bonn.cs.net.jbarrier.barrier
Enum TournamentBarrier.Role

java.lang.Object
  extended by java.lang.Enum<TournamentBarrier.Role>
      extended by edu.bonn.cs.net.jbarrier.barrier.TournamentBarrier.Role
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TournamentBarrier.Role>
Enclosing class:
TournamentBarrier

protected static enum TournamentBarrier.Role
extends java.lang.Enum<TournamentBarrier.Role>

Possible roles of the different parties in the tournament barrier.

Version:
1.0
Author:
Patrick Peschlow, Ivan Castilla Rodriguez

Enum Constant Summary
LOSER
          Loser.
ROOT
          Root.
WILDCARD
          Wildcard.
WINNER
          Winner.
 
Method Summary
static TournamentBarrier.Role valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TournamentBarrier.Role[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

WINNER

public static final TournamentBarrier.Role WINNER
Winner. Advances to the next round.


LOSER

public static final TournamentBarrier.Role LOSER
Loser. Out of the tournament.


WILDCARD

public static final TournamentBarrier.Role WILDCARD
Wildcard. Advances to the next round without having a partner.


ROOT

public static final TournamentBarrier.Role ROOT
Root. Overall winner of the tournament.

Method Detail

values

public static TournamentBarrier.Role[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (TournamentBarrier.Role c : TournamentBarrier.Role.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static TournamentBarrier.Role valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

jbarrier

Copyright 2010 Patrick Peschlow