public class Scala
extends java.lang.Object
Constructor and Description |
---|
Scala() |
Modifier and Type | Method and Description |
---|---|
static <K,V> java.util.Map<K,V> |
asJava(scala.collection.Map<K,V> scalaMap)
Converts a Scala Map to Java.
|
static <T> java.util.List<T> |
asJava(scala.collection.Seq<T> scalaList)
Converts a Scala List to Java.
|
static <A,B> scala.collection.immutable.Map<A,B> |
asScala(java.util.Map<A,B> javaMap)
Converts a Java Map to Scala.
|
static <A,B> scala.collection.immutable.Map<A,B> |
emptyMap()
Creates an empty Scala Map.
|
static <T> scala.collection.Seq<T> |
emptySeq()
Creates an empty Scala Seq.
|
static <T> scala.Option<T> |
Option(T t)
Wrap a value into a Scala Option.
|
static <T> T |
orNull(scala.Option<T> opt)
Wrap a Scala Option, handling None as null.
|
static <T> scala.collection.Seq<T> |
toSeq(java.util.List<T> list)
Converts a Java List to Scala Seq.
|
static <T> scala.collection.Seq<T> |
toSeq(T[] array)
Converts a Java Array to Scala Seq.
|
static <A,B> scala.Tuple2<A,B> |
Tuple(A a,
B b)
Create a Scala Tuple2.
|
static <T> scala.collection.Seq<T> |
varargs(T... array)
Converts a Java varargs to Scala Seq.
|
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()