Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You should look at the API docs for the <code>:+</code> methods you're calling.</p> <p><s>I'm not sure which Scala collection type that <code>java.util.List</code> is being implicitly converted to, but I think the <code>:+</code> method is the same everywhere: <a href="http://www.scala-lang.org/api/current/#scala.collection.Seq" rel="nofollow">http://www.scala-lang.org/api/current/#scala.collection.Seq</a></s></p> <p><code>java.util.List</code> is <a href="http://docs.scala-lang.org/overviews/collections/conversions-between-java-and-scala-collections.html" rel="nofollow">implicitly converted</a> to <a href="http://www.scala-lang.org/api/current/index.html#scala.collection.mutable.Buffer" rel="nofollow"><code>scala.collection.mutable.Buffer</code></a>.</p> <blockquote> <p>A copy of this sequence with an element appended.</p> </blockquote> <p>In other words, <code>:+</code> doesn't modify the collection, so the statement <code>TestResult :+ studentsearch</code> has no effect.</p> <p>You could call the Java collection's method directly: <code>TestResult addAll studentsearch</code>.</p> <p>Although, may I ask, why are you using <code>java.util.List</code> instead of a Scala collection?</p> <p>I should also note, of course, that in Scala just like in Java, starting a variable name with a capital letter is frowned upon heavily. (<code>testResult</code>, not <code>TestResult</code>). It's even more important in Scala because variables and types share the same namespace, unlike in Java.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload