Assuming I have a class named User
, can I register a codec for a collection of User
s?
I tried using just this:
eb.registerDefaultCodec(List<User>::class.java, User.UserListCodec())
But it produces this error: Only classes are allowed on the left hand side of a class literal.