Class MessageData

java.lang.Object
net.ME1312.SubData.Server.Library.MessageData

public class MessageData extends Object
MessagePack Data Conversion Class
  • Constructor Details

    • MessageData

      public MessageData()
  • Method Details

    • pack

      public static org.msgpack.value.MapValue pack(ObjectMap<?> map)
      Convert an ObjectMap to a MessagePack Map
      Parameters:
      map - ObjectMap
      Returns:
      MessagePack Map
    • unpack

      public static <K> ObjectMap<K> unpack(org.msgpack.value.MapValue msgpack)
      Convert a MessagePack Map to a ObjectMap
      Type Parameters:
      K - Key Type
      Parameters:
      msgpack - MessagePack Map
      Returns:
      ObjectMap