Hi, I need to store/retrieve a Map<String, Transform<World>>
in a ConfigurationNode
I wrote my class who implement TypeSerializer<Transform<World>>
and I registered it in default serializers.
If I store/retrieve just one Transform<World>
it work but if I want to store a map I get a ClassCastException(Map to Transform<World>)
Here is my TypeToken
:
new TypeToken<Map<String, Transform<World>>>(Map.class) {}.where(new TypeParameter<String>() {}, String.class).where(new TypeParameter<Transform<World>>() {}, new TypeToken<Transform<World>>(Transform.class) {})
What i’m doing wrong ? Can someone help me ?
I hope I was clear, English is not my native language.