Let's say you have a Scala lib that needs to be used by your Java programs but not only in the future.
When it comes to collection and every goodies that you may have in Scala. Would you rather create some methods specific for Java in your class, or somewhat in line with the single responsibility principle, you would create a bunch of static object that provide for the method that convert your object in the Scala version using explicit conversion, asJava.
If there was a way to convert asJava from within Java that would be way easier, but I don't know if that package of explicit conversion can be used from within Java. I doubt as I feel that it use type class to augment the functionality.
Is there anything from Java that could help? What is the best practice here?