AnyRef.G.Companion
object Companion
Companion object contains a set of classes, which provide companion object functionality for customized generic containers.
- Source
- __.scala
class java.lang.Object
trait scala.Matchable
class Any
Member
Type Assigned Containers Setup
This trait customizes generic containers with given AnyRef type.
Customized.Containers are already mixed with Opaque.Data, so the application code usually uses them indirectly when defining data elements.
There is no performance difference when using customized vs. generic containers, just better readability. For example:
val s: Stream[String]=VOID
// is equivalent to
val s: String.stream =VOID
val o: Opt[String]=VOID
// is equivalent to
val o: String.Opt =VOID
- Source
- Containers.scala