jerklib
Enum WriteRequest.Type
java.lang.Object
java.lang.Enum<WriteRequest.Type>
jerklib.WriteRequest.Type
- All Implemented Interfaces:
- Serializable, Comparable<WriteRequest.Type>
- Enclosing class:
- WriteRequest
public static enum WriteRequest.Type
- extends Enum<WriteRequest.Type>
Type enum is used to determine type. It is returned from getType() PRIV_MSG
is a standard msg to an IRC channel. DIRECT_MSG is msg sent directly to
another user (not in a channel). RAW_MSG when direct access to the IRC
stream is needed.
CHANNEL_MSG
public static final WriteRequest.Type CHANNEL_MSG
PRIVATE_MSG
public static final WriteRequest.Type PRIVATE_MSG
RAW_MSG
public static final WriteRequest.Type RAW_MSG
values
public static WriteRequest.Type[] 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 (WriteRequest.Type c : WriteRequest.Type.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static WriteRequest.Type 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