Class Util$

java.lang.Object
org.apache.pekko.japi.Util$

public class Util$ extends Object
This class hold common utilities for Java
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final Util$
    Static reference to the singleton instance of this Scala object.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> scala.reflect.ClassTag<T>
    classTag(Class<T> clazz)
    Returns a ClassTag describing the provided Class.
    <T> scala.collection.immutable.IndexedSeq<T>
    Turns an Iterable into an immutable Scala IndexedSeq (by copying it).
    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.
    <T> scala.collection.immutable.Seq<T>
    immutableSeq(Iterable<T> iterable)
    Turns an Iterable into an immutable Scala sequence (by copying it).
    <T> scala.collection.immutable.Seq<T>
    Turns an array into an immutable Scala sequence (by copying it).
    <T> scala.collection.immutable.Seq<T>
     
    <T> List<T>
    javaArrayList(scala.collection.immutable.Seq<T> seq)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • MODULE$

      public static final Util$ MODULE$
      Static reference to the singleton instance of this Scala object.
  • Constructor Details

    • Util$

      public Util$()
  • Method Details

    • classTag

      public <T> scala.reflect.ClassTag<T> classTag(Class<T> clazz)
      Returns a ClassTag describing the provided Class.
    • immutableSeq

      public 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.
    • immutableSeq

      public <T> scala.collection.immutable.Seq<T> immutableSeq(Object arr)
      Turns an array into an immutable Scala sequence (by copying it).
    • immutableSeq

      public <T> scala.collection.immutable.Seq<T> immutableSeq(Iterable<T> iterable)
      Turns an Iterable into an immutable Scala sequence (by copying it).
    • immutableSingletonSeq

      public <T> scala.collection.immutable.Seq<T> immutableSingletonSeq(T value)
    • javaArrayList

      public <T> List<T> javaArrayList(scala.collection.immutable.Seq<T> seq)
    • immutableIndexedSeq

      public <T> scala.collection.immutable.IndexedSeq<T> immutableIndexedSeq(Iterable<T> iterable)
      Turns an Iterable into an immutable Scala IndexedSeq (by copying it).