Package akka.japi

Class Util


  • public class Util
    extends java.lang.Object
    Returns a ClassTag describing the provided Class.
    • Constructor Summary

      Constructors 
      Constructor Description
      Util()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> scala.reflect.ClassTag<T> classTag​(java.lang.Class<T> clazz)  
      static <T> scala.collection.immutable.IndexedSeq<T> immutableIndexedSeq​(java.lang.Iterable<T> iterable)
      Turns an Iterable into an immutable Scala IndexedSeq (by copying it).
      static scala.collection.immutable.Seq<java.lang.Class<?>> immutableSeq​(java.lang.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​(java.lang.Iterable<T> iterable)
      Turns an Iterable into an immutable Scala sequence (by copying it).
      static <T> scala.collection.immutable.Seq<T> immutableSeq​(java.lang.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> java.util.List<T> javaArrayList​(scala.collection.Seq<T> seq)  
      static <T> scala.Option<T> option​(java.util.Optional<T> jOption)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Util

        public Util()
    • Method Detail

      • classTag

        public static <T> scala.reflect.ClassTag<T> classTag​(java.lang.Class<T> clazz)
      • immutableSeq

        public static scala.collection.immutable.Seq<java.lang.Class<?>> immutableSeq​(java.lang.Class<?>[] arr)
        Returns an immutable.Seq representing the provided array of Classes, an overloading of the generic immutableSeq in Util, to accommodate for erasure.
        Parameters:
        arr - (undocumented)
        Returns:
        (undocumented)
      • immutableSeq

        public static <T> scala.collection.immutable.Seq<T> immutableSeq​(java.lang.Object arr)
        Turns an array into an immutable Scala sequence (by copying it).
        Parameters:
        arr - (undocumented)
        Returns:
        (undocumented)
      • immutableSeq

        public static <T> scala.collection.immutable.Seq<T> immutableSeq​(java.lang.Iterable<T> iterable)
        Turns an Iterable into an immutable Scala sequence (by copying it).
        Parameters:
        iterable - (undocumented)
        Returns:
        (undocumented)
      • immutableSingletonSeq

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

        public static <T> java.util.List<T> javaArrayList​(scala.collection.Seq<T> seq)
      • immutableIndexedSeq

        public static <T> scala.collection.immutable.IndexedSeq<T> immutableIndexedSeq​(java.lang.Iterable<T> iterable)
        Turns an Iterable into an immutable Scala IndexedSeq (by copying it).
        Parameters:
        iterable - (undocumented)
        Returns:
        (undocumented)
      • option

        public static <T> scala.Option<T> option​(java.util.Optional<T> jOption)