implicit final class BehaviorDecorators[T] extends AnyVal
- Source
- Behavior.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- BehaviorDecorators
- AnyVal
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from BehaviorDecorators[T] to any2stringadd[BehaviorDecorators[T]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (BehaviorDecorators[T], B)
- Implicit
- This member is added by an implicit conversion from BehaviorDecorators[T] to ArrowAssoc[BehaviorDecorators[T]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val behavior: Behavior[T]
-
def
ensuring(cond: (BehaviorDecorators[T]) ⇒ Boolean, msg: ⇒ Any): BehaviorDecorators[T]
- Implicit
- This member is added by an implicit conversion from BehaviorDecorators[T] to Ensuring[BehaviorDecorators[T]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (BehaviorDecorators[T]) ⇒ Boolean): BehaviorDecorators[T]
- Implicit
- This member is added by an implicit conversion from BehaviorDecorators[T] to Ensuring[BehaviorDecorators[T]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): BehaviorDecorators[T]
- Implicit
- This member is added by an implicit conversion from BehaviorDecorators[T] to Ensuring[BehaviorDecorators[T]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): BehaviorDecorators[T]
- Implicit
- This member is added by an implicit conversion from BehaviorDecorators[T] to Ensuring[BehaviorDecorators[T]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from BehaviorDecorators[T] to StringFormat[BehaviorDecorators[T]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
toString(): String
- Definition Classes
- Any
-
def
widen[U](matcher: PartialFunction[U, T]): Behavior[U]
Widen the wrapped Behavior by placing a funnel in front of it: the supplied PartialFunction decides which message to pull in (those that it is defined at) and may transform the incoming message to place them into the wrapped Behavior’s type hierarchy.
Widen the wrapped Behavior by placing a funnel in front of it: the supplied PartialFunction decides which message to pull in (those that it is defined at) and may transform the incoming message to place them into the wrapped Behavior’s type hierarchy. Signals are not transformed.
Example:
receive[String] { (ctx, msg) => println(msg); same }.widen[Number] { case b: BigDecimal => s"BigDecimal($b)" case i: BigInteger => s"BigInteger($i)" // all other kinds of Number will be `unhandled` }
Scheduled messages via akka.actor.typed.scaladsl.TimerScheduler can currently not be used together with
widen
, see issue #25318. -
def
→[B](y: B): (BehaviorDecorators[T], B)
- Implicit
- This member is added by an implicit conversion from BehaviorDecorators[T] to ArrowAssoc[BehaviorDecorators[T]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc