trait WideningTypeBoundFunction[TypeBound, WiderTypeBound >: TypeBound, Arg[_ <: TypeBound], ReturnVal[_ <: WiderTypeBound]] extends AnyRef
like a TypeBoundFunction, except that the type bound for the return
value is wider than the type bound for the argument. This is useful for
mapWiden
and mapValuesWiden
methods in TypeKeyMap and
TypeBoundMap that return a map with a wider type bound than the original.
- TypeBound
the type bound to use for the argument type
- WiderTypeBound
the type bound to use for the return value type
- Arg
the argument type
- ReturnVal
the return value type
- See also
TypeBoundFunction
Linear Supertypes
Known Subclasses
Type Hierarchy
Ordering
- Alphabetic
- By Inheritance
Inherited
- WideningTypeBoundFunction
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
Abstract Value Members
- abstract def apply[TypeParam <: TypeBound](value: Arg[TypeParam]): ReturnVal[TypeParam]
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from WideningTypeBoundFunction[TypeBound, WiderTypeBound, Arg, ReturnVal] to any2stringadd[WideningTypeBoundFunction[TypeBound, WiderTypeBound, Arg, ReturnVal]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (WideningTypeBoundFunction[TypeBound, WiderTypeBound, Arg, ReturnVal], B)
- Implicit
- This member is added by an implicit conversion from WideningTypeBoundFunction[TypeBound, WiderTypeBound, Arg, ReturnVal] to ArrowAssoc[WideningTypeBoundFunction[TypeBound, WiderTypeBound, Arg, ReturnVal]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
ensuring(cond: (WideningTypeBoundFunction[TypeBound, WiderTypeBound, Arg, ReturnVal]) ⇒ Boolean, msg: ⇒ Any): WideningTypeBoundFunction[TypeBound, WiderTypeBound, Arg, ReturnVal]
- Implicit
- This member is added by an implicit conversion from WideningTypeBoundFunction[TypeBound, WiderTypeBound, Arg, ReturnVal] to Ensuring[WideningTypeBoundFunction[TypeBound, WiderTypeBound, Arg, ReturnVal]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (WideningTypeBoundFunction[TypeBound, WiderTypeBound, Arg, ReturnVal]) ⇒ Boolean): WideningTypeBoundFunction[TypeBound, WiderTypeBound, Arg, ReturnVal]
- Implicit
- This member is added by an implicit conversion from WideningTypeBoundFunction[TypeBound, WiderTypeBound, Arg, ReturnVal] to Ensuring[WideningTypeBoundFunction[TypeBound, WiderTypeBound, Arg, ReturnVal]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): WideningTypeBoundFunction[TypeBound, WiderTypeBound, Arg, ReturnVal]
- Implicit
- This member is added by an implicit conversion from WideningTypeBoundFunction[TypeBound, WiderTypeBound, Arg, ReturnVal] to Ensuring[WideningTypeBoundFunction[TypeBound, WiderTypeBound, Arg, ReturnVal]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): WideningTypeBoundFunction[TypeBound, WiderTypeBound, Arg, ReturnVal]
- Implicit
- This member is added by an implicit conversion from WideningTypeBoundFunction[TypeBound, WiderTypeBound, Arg, ReturnVal] to Ensuring[WideningTypeBoundFunction[TypeBound, WiderTypeBound, Arg, ReturnVal]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from WideningTypeBoundFunction[TypeBound, WiderTypeBound, Arg, ReturnVal] to StringFormat[WideningTypeBoundFunction[TypeBound, WiderTypeBound, Arg, ReturnVal]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
→[B](y: B): (WideningTypeBoundFunction[TypeBound, WiderTypeBound, Arg, ReturnVal], B)
- Implicit
- This member is added by an implicit conversion from WideningTypeBoundFunction[TypeBound, WiderTypeBound, Arg, ReturnVal] to ArrowAssoc[WideningTypeBoundFunction[TypeBound, WiderTypeBound, Arg, ReturnVal]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc