Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support tuples #1

Open
chriskilding opened this issue Jun 23, 2021 · 0 comments
Open

Support tuples #1

chriskilding opened this issue Jun 23, 2021 · 0 comments

Comments

@chriskilding
Copy link
Owner

chriskilding commented Jun 23, 2021

Tuples are difficult because Java doesn't natively support them. Observing RON field ordering in Java is also an issue. Is there a way to make tuples work in the RONMapper (reading or writing)?

Some options:

  • Read tuples to Collection<Object>
    • Optionally allow some specialisation of the generic type if all elements have some commonality e.g. Collection<Number>
  • Use a 3rd party tuple library like javatuples
  • Wait for JDK to add native tuples one day
@chriskilding chriskilding changed the title Tuple support in RONMapper Support tuples Jul 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant