Uses of Record Class
nl.andrewl.concord_core.msg.MessageTypeSerializer
Packages that use MessageTypeSerializer
Package
Description
Message components which are used by the server and the default client
implementation.
Contains some useful one-off utility classes that any consumer of Concord
messages could benefit from.
-
Uses of MessageTypeSerializer in nl.andrewl.concord_core.msg
Fields in nl.andrewl.concord_core.msg with type parameters of type MessageTypeSerializerModifier and TypeFieldDescriptionprivate static final Map<Class<?>,
MessageTypeSerializer<?>> MessageTypeSerializer.generatedMessageTypes
private final Map<MessageTypeSerializer<?>,
Byte> Serializer.inverseMessageTypes
An inverse ofSerializer.messageTypes
which is used to look up a message's byte value when you know the class of the message.private final Map<Byte,
MessageTypeSerializer<?>> Serializer.messageTypes
The mapping which defines each supported message type and the byte value used to identify it when reading and writing messages.Methods in nl.andrewl.concord_core.msg that return MessageTypeSerializerModifier and TypeMethodDescriptionstatic <T extends Message>
MessageTypeSerializer<T>MessageTypeSerializer.generateForRecord
(Class<T> messageTypeClass) Generates a message type instance for a given class, using reflection to introspect the fields of the message.static <T extends Message>
MessageTypeSerializer<T>Gets theMessageTypeSerializer
instance for a given message class, and generates a new implementation if none exists yet.default <T extends Message>
MessageTypeSerializer<T>Message.getTypeSerializer()
Convenience method to get the serializer for this message's type, using the static auto-generated set of serializers. -
Uses of MessageTypeSerializer in nl.andrewl.concord_core.util
Methods in nl.andrewl.concord_core.util with parameters of type MessageTypeSerializerModifier and TypeMethodDescription<T extends Message>
T[]ExtendedDataInputStream.readArray
(MessageTypeSerializer<T> type)