Extending existing units with per and times methods #57
Unanswered
narmstro2020
asked this question in
Q&A
Replies: 1 comment 2 replies
-
@narmstro2020 The unit classes could be made non-final. There may be some friction with generic type bounds, which is why those classes were made final in the first place |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Playing around with creating my own units for various projects.
I'd love to extend the existing usage of something like Torque or Angular velocity by adding my own per and times methods that will return my new Units class. Unfortunately the built in methods are final. Is there a way around it.
Beta Was this translation helpful? Give feedback.
All reactions