|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object play.libs.Scala
public class Scala
Class that contains useful java <-> scala conversion helpers.
Constructor Summary | |
---|---|
Scala()
|
Method Summary | ||
---|---|---|
static
|
asJava(scala.collection.Map<K,V> scalaMap)
Converts a Scala Map to Java. |
|
static
|
asJava(scala.collection.Seq<T> scalaList)
Converts a Scala List to Java. |
|
static
|
asScala(java.util.Map<A,B> javaMap)
Converts a Java Map to Scala. |
|
static
|
emptyMap()
Creates an empty Scala Map. |
|
static
|
emptySeq()
Creates an empty Scala Seq. |
|
static
|
Option(T t)
Wrap a value into a Scala Option. |
|
static
|
orNull(scala.Option<T> opt)
Wrap a Scala Option, handling None as null. |
|
static
|
toSeq(java.util.List<T> list)
Converts a Java List to Scala Seq. |
|
static
|
toSeq(T[] array)
Converts a Java Array to Scala Seq. |
|
static
|
Tuple(A a,
B b)
Create a Scala Tuple2. |
|
static
|
varargs(T... array)
Converts a Java varargs to Scala Seq. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Scala()
Method Detail |
---|
public static <T> T orNull(scala.Option<T> opt)
public static <K,V> java.util.Map<K,V> asJava(scala.collection.Map<K,V> scalaMap)
public static <A,B> scala.collection.immutable.Map<A,B> asScala(java.util.Map<A,B> javaMap)
public static <T> java.util.List<T> asJava(scala.collection.Seq<T> scalaList)
public static <T> scala.collection.Seq<T> toSeq(java.util.List<T> list)
public static <T> scala.collection.Seq<T> toSeq(T[] array)
public static <T> scala.collection.Seq<T> varargs(T... array)
public static <T> scala.Option<T> Option(T t)
public static <A,B> scala.Tuple2<A,B> Tuple(A a, B b)
public static <T> scala.collection.Seq<T> emptySeq()
public static <A,B> scala.collection.immutable.Map<A,B> emptyMap()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |