COMMUNITY

How to write something like Haxe's typedef= in Java?

How to write something like Haxe’s typedef in Java instead of class ?

Java has primitive types, objects and arrays and that’s it. No typedefs.

Source: https://stackoverflow.com/questions/1195206/is-there-a-java-equivalent-or-methodology-for-the-typedef-keyword-in-c

MessagePack from Haxe to Java problem

I just use Haxe’s lib MessagePack to encode from Haxe’s typedef to Java Native

but Java native don’t know how to decode Haxe’s typedef,because Java have no [typedef]

but haxe can decode from Java Native encode data,

are there any easy way to fixed that ?