title: How to create a scala.collection.immutable.Seq from a Java List in Java?
body: <p>I'm trying to get Akka going in my Java project, and I'm hung up on a small issue with the Seq type(s) from Scala.  I'm able to convert my Java List of ActorRef into a scala.collection.Seq, but the Akka API I'm trying to use requires a scala.collection.immutable.Seq.  How can I make one?</p>
  
  <p>Code:</p>
  
  <pre><code>static class Router extends UntypedLoadBalancer {
      private final InfiniteIterator&lt;ActorRef&gt; workers;
  
      public Router(List&lt;ActorRef&gt; workers) {
          Seq workerSeq = asScalaBuffer(workers);
  
          // how to get from the scala.collection.Seq above to the instance of
          // scala.collection.immutable.Seq required by CyclicIterator below?
          this.workers = new CyclicIterator&lt;ActorRef&gt;();
      }
  
      public InfiniteIterator&lt;ActorRef&gt; seq() {
          return workers;
      }
  }
  </code></pre>