trait
Duck[T, D] extends Any
Abstract Value Members
-
abstract
def
apply(t: T): D
-
abstract
def
getClass(): Class[_]
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
equals(arg0: Any): Boolean
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
def
toString(): String
Converts an instance of type T into an instance of a trait of type D using the structural information of D and T to extract the methods of D from T.
Example:
the generic type that is being converted to D
A generic type that must represent a trait (or java interface)