Crossfire JXClient, Trunk
Public Member Functions | Private Attributes | List of all members
com.realtime.crossfire.jxclient.protocol.MessageTypes Class Reference
Collaboration diagram for com.realtime.crossfire.jxclient.protocol.MessageTypes:
Collaboration graph

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
 

Detailed Description

A set of message types or type/subtypes.

Author
Andreas Kirschbaum

Definition at line 31 of file MessageTypes.java.

Constructor & Destructor Documentation

◆ MessageTypes()

com.realtime.crossfire.jxclient.protocol.MessageTypes.MessageTypes ( final boolean  add,
final int @NotNull[]  types 
)

Member Function Documentation

◆ isTypeShown()

boolean com.realtime.crossfire.jxclient.protocol.MessageTypes.isTypeShown ( final int  type,
final int  subtype 
)

Returns whether a message type should be shown.

Parameters
typethe message type
subtypethe message subtype
Returns
whether the message type should be shown

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().

Here is the caller graph for this function:

Member Data Documentation

◆ add

final boolean com.realtime.crossfire.jxclient.protocol.MessageTypes.add
private
true

=show only the given message types;

false

=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().

◆ types

final int [] com.realtime.crossfire.jxclient.protocol.MessageTypes.types
private

The documentation for this class was generated from the following file: