trait SetDSLBase[T, AfterAdd, AfterMultiAdd] extends AnyRef
- Alphabetic
- By Inheritance
- SetDSLBase
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def appendElement(newImpl: ImplDef, pos: CodePositionMaterializer): AfterAdd
- Attributes
- protected[this]
- abstract def multiSetAdd(newImpl: ImplDef, pos: CodePositionMaterializer): AfterMultiAdd
- Attributes
- protected[this]
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def add[I <: T](function: Functoid[I])(implicit pos: CodePositionMaterializer): AfterAdd
- final def add[I <: T](function: => I)(implicit arg0: Tag[I], pos: CodePositionMaterializer): AfterAdd
- final def add[I <: T](implicit arg0: Tag[I], arg1: ClassConstructor[I], pos: CodePositionMaterializer): AfterAdd
- final def addEffect[F[_], I <: T](function: Functoid[F[I]])(implicit arg0: TagK[F], arg1: Tag[I], pos: CodePositionMaterializer): AfterAdd
- final def addEffect[F[_], I <: T](instance: F[I])(implicit arg0: TagK[F], arg1: Tag[I], pos: CodePositionMaterializer): AfterAdd
- final def addFactory[I <: T](implicit arg0: Tag[I], arg1: FactoryConstructor[I], pos: CodePositionMaterializer): AfterAdd
- See also
- final def addResource[R0, R <: Lifecycle[LifecycleF, T]](function: Functoid[R0])(implicit adapt: Aux[R0, R], tag: LifecycleTag[R], pos: CodePositionMaterializer): AfterAdd
- final def addResource[R](function: Functoid[R with Lifecycle[LifecycleF, T]])(implicit tag: LifecycleTag[R], pos: CodePositionMaterializer, d: DummyImplicit): AfterAdd
- final def addResource[R](instance: R with Lifecycle[LifecycleF, T])(implicit tag: LifecycleTag[R], pos: CodePositionMaterializer): AfterAdd
- final def addResource[R <: Lifecycle[LifecycleF, T]](implicit arg0: ClassConstructor[R], tag: LifecycleTag[R], pos: CodePositionMaterializer): AfterAdd
- final def addSet[I <: Set[_ <: T]](function: Functoid[I])(implicit pos: CodePositionMaterializer): AfterMultiAdd
- final def addSet[I <: Set[_ <: T]](function: => I)(implicit arg0: Tag[I], pos: CodePositionMaterializer): AfterMultiAdd
Add multiple values into this set at once
Add multiple values into this set at once
Example:
class T many[T].addSet(Set(new T, new T, new T))
- final def addSetValue[I <: Set[_ <: T]](instance: I)(implicit arg0: Tag[I], pos: CodePositionMaterializer): AfterMultiAdd
- final def addTrait[I <: T](implicit arg0: Tag[I], arg1: TraitConstructor[I], pos: CodePositionMaterializer): AfterAdd
- See also
- final def addValue[I <: T](instance: I)(implicit arg0: Tag[I], pos: CodePositionMaterializer): AfterAdd
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def ref[I <: T](name: Identifier)(implicit arg0: Tag[I], pos: CodePositionMaterializer): AfterAdd
- final def ref[I <: T](implicit arg0: Tag[I], pos: CodePositionMaterializer): AfterAdd
Bind by reference to another bound key
Bind by reference to another bound key
Example:
trait T trait T1 extends T make[T1] many[T].ref[T1]
Here,
T1
will be created only once. A class that depends onSet[T]
will receive a Set containing the sameT1
instance as a class that depends on just aT1
. - final def refEffect[F[_], I <: T](name: Identifier)(implicit arg0: TagK[F], arg1: Tag[I], pos: CodePositionMaterializer): AfterAdd
- final def refEffect[F[_], I <: T](implicit arg0: TagK[F], arg1: Tag[I], pos: CodePositionMaterializer): AfterAdd
- final def refResource[R <: Lifecycle[LifecycleF, T]](name: Identifier)(implicit tag: LifecycleTag[R], pos: CodePositionMaterializer): AfterAdd
- final def refResource[R <: Lifecycle[LifecycleF, T]](implicit tag: LifecycleTag[R], pos: CodePositionMaterializer): AfterAdd
- final def refSet[I <: Set[_ <: T]](name: Identifier)(implicit arg0: Tag[I], pos: CodePositionMaterializer): AfterAdd
- final def refSet[I <: Set[_ <: T]](implicit arg0: Tag[I], pos: CodePositionMaterializer): AfterAdd
- 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(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def weak[I <: T](name: Identifier)(implicit arg0: Tag[I], pos: CodePositionMaterializer): AfterAdd
- final def weak[I <: T](implicit arg0: Tag[I], pos: CodePositionMaterializer): AfterAdd
Add a Weak reference to
I
to the setAdd a Weak reference to
I
to the setThis set will contain the same object that is bound to
make[I]
, but ONLY if some other - not garbage-collected - component in the object graph depends onI
explicitly.- See also
Weak Sets https://izumi.7mind.io/distage/advanced-features#weak-sets
- final def weakSet[I <: Set[_ <: T]](name: Identifier)(implicit arg0: Tag[I], pos: CodePositionMaterializer): AfterAdd
- final def weakSet[I <: Set[_ <: T]](implicit arg0: Tag[I], pos: CodePositionMaterializer): AfterAdd
Add a Weak reference to
Set[I]
to the setAdd a Weak reference to
Set[I]
to the setThis set will contain all the elements of the Set bound at
make[Set[I]]
, but ONLY if some other, not garbage-collected, component in the object graph depends onSet[I]
explicitly.- See also
Weak Sets https://izumi.7mind.io/distage/advanced-features#weak-sets