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

Public Member Functions

void addType (@NotNull final String type) throws UnknownMessageTypeException
 
MessageTypes build ()
 
 MessageTypesBuilder (final boolean add)
 

Private Attributes

final boolean add
 
final List< Integer > types = new ArrayList<>()
 

Detailed Description

Builds for MessageTypes instances.

Definition at line 10 of file MessageTypesBuilder.java.

Constructor & Destructor Documentation

◆ MessageTypesBuilder()

com.realtime.crossfire.jxclient.protocol.MessageTypesBuilder.MessageTypesBuilder ( final boolean  add)

Creates a new instance.

Parameters
add

Definition at line 29 of file MessageTypesBuilder.java.

References com.realtime.crossfire.jxclient.protocol.MessageTypesBuilder.add.

Member Function Documentation

◆ addType()

void com.realtime.crossfire.jxclient.protocol.MessageTypesBuilder.addType ( @NotNull final String  type) throws UnknownMessageTypeException

Adds a type.

Parameters
typethe type
Exceptions
UnknownMessageTypeExceptionif the type is invalid

Definition at line 38 of file MessageTypesBuilder.java.

References com.realtime.crossfire.jxclient.protocol.MessageType.parseMessageSubtype(), com.realtime.crossfire.jxclient.protocol.MessageType.parseMessageType(), and com.realtime.crossfire.jxclient.protocol.MessageTypesBuilder.types.

Referenced by com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseLogFilter().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ build()

MessageTypes com.realtime.crossfire.jxclient.protocol.MessageTypesBuilder.build ( )

Creates a new MessageTypes instance.

Returns
the new instance

Definition at line 55 of file MessageTypesBuilder.java.

References com.realtime.crossfire.jxclient.protocol.MessageTypesBuilder.add, and com.realtime.crossfire.jxclient.protocol.MessageTypesBuilder.types.

Referenced by com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseLogFilter().

Here is the caller graph for this function:

Member Data Documentation

◆ add

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

=show only the given message types;

false

=show all but the given message types.

Definition at line 16 of file MessageTypesBuilder.java.

Referenced by com.realtime.crossfire.jxclient.protocol.MessageTypesBuilder.build(), and com.realtime.crossfire.jxclient.protocol.MessageTypesBuilder.MessageTypesBuilder().

◆ types

final List<Integer> com.realtime.crossfire.jxclient.protocol.MessageTypesBuilder.types = new ArrayList<>()
private

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