2
我用zipAll
方法有兩個序列後,合併兩個列表,所以現在試圖從合併的列表反序列化Scala的對象zipAll SEQ
val foosList = listFoos
val barsList = listBars
val mergedList = foosList.zipAll(barsList,"missing","dupe")
現在我試圖訪問相應的訪問對象合併列表中的對象,如
var someField = mergedList.head._1.someField // the "mergedList.head._1" is of type java.io.Serializable
如何檢索我的對象值?