Crossfire JXClient, Trunk
|
Public Member Functions | |
boolean | isTypeShown (final int type, final int subtype) |
MessageTypes (final boolean add, final int @NotNull[] types) | |
Private Attributes | |
final boolean | add |
final int[] | types |
A set of message types or type/subtypes.
Definition at line 31 of file MessageTypes.java.
com.realtime.crossfire.jxclient.protocol.MessageTypes.MessageTypes | ( | final boolean | add, |
final int @NotNull[] | types | ||
) |
Creates a new instance.
add |
Definition at line 50 of file MessageTypes.java.
References com.realtime.crossfire.jxclient.protocol.MessageTypes.add, and com.realtime.crossfire.jxclient.protocol.MessageTypes.types.
boolean com.realtime.crossfire.jxclient.protocol.MessageTypes.isTypeShown | ( | final int | type, |
final int | subtype | ||
) |
Returns whether a message type should be shown.
type | the message type |
subtype | the message subtype |
Definition at line 61 of file MessageTypes.java.
References com.realtime.crossfire.jxclient.protocol.MessageTypes.add, and com.realtime.crossfire.jxclient.protocol.MessageTypes.types.
Referenced by com.realtime.crossfire.jxclient.protocol.MessageTypesTest.isTypeShown_showAll_returnsExpectedValues(), and com.realtime.crossfire.jxclient.protocol.MessageTypesTest.isTypeShown_showNone_returnsExpectedValues().
|
private |
=show only the given message types;
=show all but the given message types.
Definition at line 37 of file MessageTypes.java.
Referenced by com.realtime.crossfire.jxclient.protocol.MessageTypes.isTypeShown(), and com.realtime.crossfire.jxclient.protocol.MessageTypes.MessageTypes().
|
private |
The included message type and subtype IDs.
Definition at line 42 of file MessageTypes.java.
Referenced by com.realtime.crossfire.jxclient.protocol.MessageTypes.isTypeShown(), and com.realtime.crossfire.jxclient.protocol.MessageTypes.MessageTypes().