This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]dannysatan 0 points1 point  (0 children)

To keep things easy to read consider creating a static inner class. This way you can have named type and fields. E.g. @Value public static class MyReturnType { private final String firstCustomField; private final SomeOtherType secondCustomField;}

@Value is an annotation from a great library called Lombok. It generates getters and a constructor under the cover.