Scala and Java data structures -
i'm new scala , have imported external java (nmap4j) library returns object called:
class org.nmap4j.data.nmaprun.verbose - how determine object type in scala?
- how convert thats usable in scala?
i'm assuming ned use scala java conversions, i'm little confused start.
http://www.scala-lang.org/api/2.10.2/index.html#scala.collection.javaconversions
you can use you'd use in java, , it's type doesn't change: it's org.nmap4j.data.nmaprun.verbose.
conversions , converters intended transform java standard library collection scala standard library collection , vice versa. speaking, if have java collection not standard library, there's reason different, , converting scala defy purpose.
Comments
Post a Comment