Package org.apache.pekko.japi
Class Util
java.lang.Object
org.apache.pekko.japi.Util
This class hold common utilities for Java
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> scala.reflect.ClassTag<T>Returns a ClassTag describing the provided Class.static <T> scala.collection.immutable.IndexedSeq<T>immutableIndexedSeq(Iterable<T> iterable) Turns anIterableinto an immutable Scala IndexedSeq (by copying it).static scala.collection.immutable.Seq<Class<?>>immutableSeq(Class<?>[] arr) Returns an immutable.Seq representing the provided array of Classes, an overloading of the generic immutableSeq in Util, to accommodate for erasure.static <T> scala.collection.immutable.Seq<T>immutableSeq(Iterable<T> iterable) Turns anIterableinto an immutable Scala sequence (by copying it).static <T> scala.collection.immutable.Seq<T>immutableSeq(Object arr) Turns an array into an immutable Scala sequence (by copying it).static <T> scala.collection.immutable.Seq<T>immutableSingletonSeq(T value) static <T> List<T>javaArrayList(scala.collection.immutable.Seq<T> seq)
-
Constructor Details
-
Util
public Util()
-
-
Method Details
-
classTag
Returns a ClassTag describing the provided Class. -
immutableSeq
Returns an immutable.Seq representing the provided array of Classes, an overloading of the generic immutableSeq in Util, to accommodate for erasure. -
immutableSeq
Turns an array into an immutable Scala sequence (by copying it). -
immutableSeq
Turns anIterableinto an immutable Scala sequence (by copying it). -
immutableSingletonSeq
public static <T> scala.collection.immutable.Seq<T> immutableSingletonSeq(T value) -
javaArrayList
-
immutableIndexedSeq
public static <T> scala.collection.immutable.IndexedSeq<T> immutableIndexedSeq(Iterable<T> iterable) Turns anIterableinto an immutable Scala IndexedSeq (by copying it).
-