Commit 7d6eb6fb authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Adding more AnyVal for better support for other types

parent ed7e9588
......@@ -47,7 +47,6 @@ object VcfUtils {
* HACK!!
* Stands for scalaListToJavaObjectArrayList
* Convert a scala List[Any] to a java ArrayList[Object]. This is necessary for BCF conversions
* As scala ints and floats cannot be directly cast to java objects (they aren't objects),
......@@ -60,8 +59,13 @@ object VcfUtils {
val out = new util.ArrayList[Object]()
array.foreach {
case x: Long => out.add(
case x: Int => out.add(
case x: Char => out.add(
case x: Byte => out.add(
case x: Double => out.add(
case x: Float => out.add(
case x: Boolean => out.add(
case x: String => out.add(x)
case x: Object => out.add(x)
case x => out.add(x.toString)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment