cz.cuni.amis.pogamut.ut2004.teamcomm.mina.messages
Enum TCRecipient
java.lang.Object
java.lang.Enum<TCRecipient>
cz.cuni.amis.pogamut.ut2004.teamcomm.mina.messages.TCRecipient
- All Implemented Interfaces:
- Serializable, Comparable<TCRecipient>
public enum TCRecipient
- extends Enum<TCRecipient>
|
Method Summary |
static TCRecipient |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static TCRecipient[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
GLOBAL
public static final TCRecipient GLOBAL
TEAM
public static final TCRecipient TEAM
CHANNEL
public static final TCRecipient CHANNEL
PRIVATE
public static final TCRecipient PRIVATE
TC_INFO
public static final TCRecipient TC_INFO
- Special type of the recipient - sent by
TCMinaServer and consumed by TCMinaClient.
These messages are usually consumed by TCMinaClient but some of them are even propagated to the UT2004Bot.
TC_REQUEST
public static final TCRecipient TC_REQUEST
- Special type of the recipient - sent by
TCMinaClient and consumed by TCMinaServer.
These messages are never received by TCMinaClient and thus they are NEVER further propagated to the UT2004Bot.
values
public static TCRecipient[] 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 (TCRecipient c : TCRecipient.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static TCRecipient 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 © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.