com.daodecode.scalaj.collection

Importing com.daodecode.scalaj.collection._ allows to use "extension" methods deepAsScala/deepAsJava, which convert all supported nested Java/Scala collections as well as primitives.

Attributes

Members list

Packages

Importing com.daodecode.scalaj.collection.immutable._ allows to use "extension" methods deepAsScalaImmutable, which convert all supported nested Java collections to immutable versions of corresponding Scala collections as well as primitive wrappers.

Importing com.daodecode.scalaj.collection.immutable._ allows to use "extension" methods deepAsScalaImmutable, which convert all supported nested Java collections to immutable versions of corresponding Scala collections as well as primitive wrappers.

Attributes

Type members

Classlikes

final implicit class DeepArrayAsJavaArray[A](val array: Array[A]) extends AnyVal

Attributes

Supertypes
class AnyVal
trait Matchable
class Any
final implicit class DeepArrayAsScalaArray[A](val array: Array[A]) extends AnyVal

Attributes

Supertypes
class AnyVal
trait Matchable
class Any
final implicit class DeepJavaListAsMutableBuffer[A](val javaList: List[A]) extends AnyVal

****************************************** deepAsScala converters *******************************************

****************************************** deepAsScala converters *******************************************

Attributes

Supertypes
class AnyVal
trait Matchable
class Any
final implicit class DeepJavaMapAsMutableMap[A, B](val javaMap: Map[A, B]) extends AnyVal

Attributes

Supertypes
class AnyVal
trait Matchable
class Any
final implicit class DeepJavaSetAsMutableSet[A](val javaSet: Set[A]) extends AnyVal

Attributes

Supertypes
class AnyVal
trait Matchable
class Any
final implicit class DeepMapAsJavaMap[A, B](val scalaMap: Map[A, B]) extends AnyVal

Attributes

Supertypes
class AnyVal
trait Matchable
class Any
final implicit class DeepSeqAsJavaList[A](val scalaSeq: Seq[A]) extends AnyVal

****************************************** deepAsJava converters *******************************************

****************************************** deepAsJava converters *******************************************

Attributes

Supertypes
class AnyVal
trait Matchable
class Any
final implicit class DeepSetAsJavaSet[A](val scalaSet: Set[A]) extends AnyVal

Attributes

Supertypes
class AnyVal
trait Matchable
class Any
class JCastConverter[A, B] extends JConverter[A, B]

Implementation of JConverter that casts A to B.

Implementation of JConverter that casts A to B.

Type parameters

A

Type convert from (represents Scala side)

B

Type convert to (represents Java side)

Attributes

Supertypes
trait JConverter[A, B]
class Object
trait Matchable
class Any
Known subtypes
object BooleanConverter.type
object BytesConverter.type
object CharConverter.type
object DoublesConverter.type
object FloatConverter.type
object IntsConverter.type
object LongsConverter.type
object ShortsConverter.type
object SelfJConverter.type
Show all
trait JConverter[-A, +B]

Base trait for convertions of Scala classes to Java classes. All deepAsJava methods require implicit parameter of this type

Base trait for convertions of Scala classes to Java classes. All deepAsJava methods require implicit parameter of this type

Type parameters

A

Type convert from (represents Scala side)

B

Type convert to (represents Java side)

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class JCastConverter[A, B]
object BooleanConverter.type
object BytesConverter.type
object CharConverter.type
object DoublesConverter.type
object FloatConverter.type
object IntsConverter.type
object LongsConverter.type
object ShortsConverter.type
object SelfJConverter.type
Show all

Companion object of JConverter to bring implicit converters in following order

Companion object of JConverter to bring implicit converters in following order

  • collection converters defined here
  • converters for primitive types defined in PrimitivesJConverter
  • "self" converter for fallback

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
JConverter.type

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object JConverter.type

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object SConverter.type

Scala to Java converters for "primitive types

Scala to Java converters for "primitive types

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object JConverter.type

Java to Scala converters for "primitive types

Java to Scala converters for "primitive types

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object SConverter.type
class SCastConverter[A, B] extends SConverter[A, B]

Implementation of SConverter that casts A to B.

Implementation of SConverter that casts A to B.

Type parameters

A

Type convert from (represents Java side)

B

Type convert to (represents Scala side)

Attributes

Supertypes
trait SConverter[A, B]
class Object
trait Matchable
class Any
Known subtypes
object BooleanConverter.type
object BytesConverter.type
object CharConverter.type
object DoublesConverter.type
object FloatConverter.type
object IntsConverter.type
object LongsConverter.type
object ShortsConverter.type
object SelfSConverter.type
Show all
trait SConverter[-A, +B]

Base trait for convertions of Java classes to Scala classes. All deepAsScala methods require implicit parameter of this type

Base trait for convertions of Java classes to Scala classes. All deepAsScala methods require implicit parameter of this type

Type parameters

A

Type convert from (represents Java side)

B

Type convert to (represents Scala side)

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class SCastConverter[A, B]
object BooleanConverter.type
object BytesConverter.type
object CharConverter.type
object DoublesConverter.type
object FloatConverter.type
object IntsConverter.type
object LongsConverter.type
object ShortsConverter.type
object SelfSConverter.type
Show all

Companion object of SConverter to bring implicit converters in following order

Companion object of SConverter to bring implicit converters in following order

  • collection converters defined here
  • converters for primitive types defined in PrimitivesSConverter
  • "self" converter for fallback

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
SConverter.type
object SelfJConverter extends JCastConverter[Any, Any]

Converter that "converts" A to A, used as a fallback when there are no other implicit converters in scope

Converter that "converts" A to A, used as a fallback when there are no other implicit converters in scope

Attributes

Supertypes
class JCastConverter[Any, Any]
trait JConverter[Any, Any]
class Object
trait Matchable
class Any
Self type
object SelfSConverter extends SCastConverter[Any, Any]

Converter that "converts" A to A, used as a fallback when there are no other implicit converters in scope

Converter that "converts" A to A, used as a fallback when there are no other implicit converters in scope

Attributes

Supertypes
class SCastConverter[Any, Any]
trait SConverter[Any, Any]
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any

Inherited classlikes

implicit class BufferHasAsJava[A](b: Buffer[A])

Attributes

Inherited from:
AsJavaExtensions
Supertypes
class Object
trait Matchable
class Any
implicit class CollectionHasAsScala[A](c: Collection[A])

Attributes

Inherited from:
AsScalaExtensions
Supertypes
class Object
trait Matchable
class Any
implicit class ConcurrentMapHasAsJava[K, V](m: Map[K, V])

Attributes

Inherited from:
AsJavaExtensions
Supertypes
class Object
trait Matchable
class Any
implicit class ConcurrentMapHasAsScala[K, V](m: ConcurrentMap[K, V])

Attributes

Inherited from:
AsScalaExtensions
Supertypes
class Object
trait Matchable
class Any
implicit class DictionaryHasAsScala[K, V](d: Dictionary[K, V])

Attributes

Inherited from:
AsScalaExtensions
Supertypes
class Object
trait Matchable
class Any
implicit class EnumerationHasAsScala[A](e: Enumeration[A])

Attributes

Inherited from:
AsScalaExtensions
Supertypes
class Object
trait Matchable
class Any
implicit class IterableHasAsJava[A](i: Iterable[A])

Attributes

Inherited from:
AsJavaExtensions
Supertypes
class Object
trait Matchable
class Any
implicit class IterableHasAsScala[A](i: Iterable[A])

Attributes

Inherited from:
AsScalaExtensions
Supertypes
class Object
trait Matchable
class Any
implicit class IteratorHasAsJava[A](i: Iterator[A])

Attributes

Inherited from:
AsJavaExtensions
Supertypes
class Object
trait Matchable
class Any
implicit class IteratorHasAsScala[A](i: Iterator[A])

Attributes

Inherited from:
AsScalaExtensions
Supertypes
class Object
trait Matchable
class Any
implicit class ListHasAsScala[A](l: List[A])

Attributes

Inherited from:
AsScalaExtensions
Supertypes
class Object
trait Matchable
class Any
implicit class MapHasAsJava[K, V](m: Map[K, V])

Attributes

Inherited from:
AsJavaExtensions
Supertypes
class Object
trait Matchable
class Any
implicit class MapHasAsScala[K, V](m: Map[K, V])

Attributes

Inherited from:
AsScalaExtensions
Supertypes
class Object
trait Matchable
class Any
implicit class MutableMapHasAsJava[K, V](m: Map[K, V])

Attributes

Inherited from:
AsJavaExtensions
Supertypes
class Object
trait Matchable
class Any
implicit class MutableSeqHasAsJava[A](s: Seq[A])

Attributes

Inherited from:
AsJavaExtensions
Supertypes
class Object
trait Matchable
class Any
implicit class MutableSetHasAsJava[A](s: Set[A])

Attributes

Inherited from:
AsJavaExtensions
Supertypes
class Object
trait Matchable
class Any
implicit class PropertiesHasAsScala(i: Properties)

Attributes

Inherited from:
AsScalaExtensions
Supertypes
class Object
trait Matchable
class Any
implicit class SeqHasAsJava[A](s: Seq[A])

Attributes

Inherited from:
AsJavaExtensions
Supertypes
class Object
trait Matchable
class Any
implicit class SetHasAsJava[A](s: Set[A])

Attributes

Inherited from:
AsJavaExtensions
Supertypes
class Object
trait Matchable
class Any
implicit class SetHasAsScala[A](s: Set[A])

Attributes

Inherited from:
AsScalaExtensions
Supertypes
class Object
trait Matchable
class Any

Inherited types

type JBoolean = Boolean

Attributes

Inherited from:
JavaAliases
type JByte = Byte

Attributes

Inherited from:
JavaAliases
type JChar = Character

Attributes

Inherited from:
JavaAliases
type JDouble = Double

Attributes

Inherited from:
JavaAliases
type JFloat = Float

Attributes

Inherited from:
JavaAliases
type JInt = Integer

Attributes

Inherited from:
JavaAliases
type JList[A] = List[A]

Attributes

Inherited from:
JavaAliases
type JLong = Long

Attributes

Inherited from:
JavaAliases
type JMap[A, B] = Map[A, B]

Attributes

Inherited from:
JavaAliases
type JSet[A] = Set[A]

Attributes

Inherited from:
JavaAliases
type JShort = Short

Attributes

Inherited from:
JavaAliases

Implicits

Implicits

final implicit def DeepArrayAsJavaArray[A](array: Array[A]): DeepArrayAsJavaArray[A]
final implicit def DeepArrayAsScalaArray[A](array: Array[A]): DeepArrayAsScalaArray[A]
final implicit def DeepJavaListAsMutableBuffer[A](javaList: List[A]): DeepJavaListAsMutableBuffer[A]

****************************************** deepAsScala converters *******************************************

****************************************** deepAsScala converters *******************************************

Attributes

final implicit def DeepJavaMapAsMutableMap[A, B](javaMap: Map[A, B]): DeepJavaMapAsMutableMap[A, B]
final implicit def DeepJavaSetAsMutableSet[A](javaSet: Set[A]): DeepJavaSetAsMutableSet[A]
final implicit def DeepMapAsJavaMap[A, B](scalaMap: Map[A, B]): DeepMapAsJavaMap[A, B]
final implicit def DeepSeqAsJavaList[A](scalaSeq: Seq[A]): DeepSeqAsJavaList[A]

****************************************** deepAsJava converters *******************************************

****************************************** deepAsJava converters *******************************************

Attributes

final implicit def DeepSetAsJavaSet[A](scalaSet: Set[A]): DeepSetAsJavaSet[A]