pcuserveur.lib
Enum Evenement

java.lang.Object
  extended by java.lang.Enum<Evenement>
      extended by pcuserveur.lib.Evenement
All Implemented Interfaces:
Serializable, Comparable<Evenement>

public enum Evenement
extends Enum<Evenement>

Version:
1.0 Enumération représentant les évènements qu'il peut se produire sur un canal.
Author:
PLU Julien
See Also:
Serveur, Canal

Enum Constant Summary
BANNI
           Un utilisateur a été banni.
EJECTE
           Ejecté d'un canal.
PARLE
           Parle sur un canal.
PARTI
           Part d'un canal.
REJOINT
           Rejoint un canal.
SUJETCHANGE
           Le sujet du canal a été changé.
SUPPRIME
           Le canal a été supprimé.
 
Method Summary
static Evenement valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Evenement[] 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

EJECTE

public static final Evenement EJECTE

Ejecté d'un canal.


PARLE

public static final Evenement PARLE

Parle sur un canal.


PARTI

public static final Evenement PARTI

Part d'un canal.


REJOINT

public static final Evenement REJOINT

Rejoint un canal.


SUJETCHANGE

public static final Evenement SUJETCHANGE

Le sujet du canal a été changé.


SUPPRIME

public static final Evenement SUPPRIME

Le canal a été supprimé.


BANNI

public static final Evenement BANNI

Un utilisateur a été banni.

Method Detail

values

public static Evenement[] 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 (Evenement c : Evenement.values())
    System.out.println(c);

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

valueOf

public static Evenement valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2010 PCU. All Rights Reserved.