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

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -