final class SetDSL[T] extends SetDSLMutBase[T] with Tagging[SetDSL[T]]
- Alphabetic
- By Inheritance
- SetDSL
- Tagging
- SetDSLMutBase
- SetDSLBase
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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): SetElementDSL[T]
- Definition Classes
- SetDSLBase
- final def add[I <: T](function: => I)(implicit arg0: Tag[I], pos: CodePositionMaterializer): SetElementDSL[T]
- Definition Classes
- SetDSLBase
- final def add[I <: T](implicit arg0: Tag[I], arg1: ClassConstructor[I], pos: CodePositionMaterializer): SetElementDSL[T]
- Definition Classes
- SetDSLBase
- final def addEffect[F[_], I <: T](function: Functoid[F[I]])(implicit arg0: TagK[F], arg1: Tag[I], pos: CodePositionMaterializer): SetElementDSL[T]
- Definition Classes
- SetDSLBase
- final def addEffect[F[_], I <: T](instance: F[I])(implicit arg0: TagK[F], arg1: Tag[I], pos: CodePositionMaterializer): SetElementDSL[T]
- Definition Classes
- SetDSLBase
- final def addFactory[I <: T](implicit arg0: Tag[I], arg1: FactoryConstructor[I], pos: CodePositionMaterializer): SetElementDSL[T]
- Definition Classes
- SetDSLBase
- See also
- final def addOp[R](op: SetInstruction)(nextState: (SetRef) => R): R
- Attributes
- protected
- Definition Classes
- SetDSLMutBase
- final def addResource[R0, R <: Lifecycle[LifecycleF, T]](function: Functoid[R0])(implicit adapt: Aux[R0, R], tag: LifecycleTag[R], pos: CodePositionMaterializer): SetElementDSL[T]
- Definition Classes
- SetDSLBase
- final def addResource[R](function: Functoid[R with Lifecycle[LifecycleF, T]])(implicit tag: LifecycleTag[R], pos: CodePositionMaterializer, d: DummyImplicit): SetElementDSL[T]
- Definition Classes
- SetDSLBase
- final def addResource[R](instance: R with Lifecycle[LifecycleF, T])(implicit tag: LifecycleTag[R], pos: CodePositionMaterializer): SetElementDSL[T]
- Definition Classes
- SetDSLBase
- final def addResource[R <: Lifecycle[LifecycleF, T]](implicit arg0: ClassConstructor[R], tag: LifecycleTag[R], pos: CodePositionMaterializer): SetElementDSL[T]
- Definition Classes
- SetDSLBase
- final def addSet[I <: Set[_ <: T]](function: Functoid[I])(implicit pos: CodePositionMaterializer): MultiSetElementDSL[T]
- Definition Classes
- SetDSLBase
- final def addSet[I <: Set[_ <: T]](function: => I)(implicit arg0: Tag[I], pos: CodePositionMaterializer): MultiSetElementDSL[T]
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))
- Definition Classes
- SetDSLBase
- final def addSetValue[I <: Set[_ <: T]](instance: I)(implicit arg0: Tag[I], pos: CodePositionMaterializer): MultiSetElementDSL[T]
- Definition Classes
- SetDSLBase
- final def addTrait[I <: T](implicit arg0: Tag[I], arg1: TraitConstructor[I], pos: CodePositionMaterializer): SetElementDSL[T]
- Definition Classes
- SetDSLBase
- See also
- final def addValue[I <: T](instance: I)(implicit arg0: Tag[I], pos: CodePositionMaterializer): SetElementDSL[T]
- Definition Classes
- SetDSLBase
- final def appendElement(newElement: ImplDef, pos: CodePositionMaterializer): SetElementDSL[T]
- Attributes
- protected
- Definition Classes
- SetDSLMutBase → SetDSLBase
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def confined: SetDSL[T]
- Definition Classes
- Tagging
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def exposed: SetDSL[T]
- Definition Classes
- Tagging
- 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 multiSetAdd(newElements: ImplDef, pos: CodePositionMaterializer): MultiSetElementDSL[T]
- Attributes
- protected
- Definition Classes
- SetDSLMutBase → SetDSLBase
- val mutableState: SetRef
- Attributes
- protected
- Definition Classes
- SetDSL → SetDSLMutBase
- def named(name: Identifier): SetNamedDSL[T]
- 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): SetElementDSL[T]
- Definition Classes
- SetDSLBase
- final def ref[I <: T](implicit arg0: Tag[I], pos: CodePositionMaterializer): SetElementDSL[T]
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
.- Definition Classes
- SetDSLBase
- final def refEffect[F[_], I <: T](name: Identifier)(implicit arg0: TagK[F], arg1: Tag[I], pos: CodePositionMaterializer): SetElementDSL[T]
- Definition Classes
- SetDSLBase
- final def refEffect[F[_], I <: T](implicit arg0: TagK[F], arg1: Tag[I], pos: CodePositionMaterializer): SetElementDSL[T]
- Definition Classes
- SetDSLBase
- final def refResource[R <: Lifecycle[LifecycleF, T]](name: Identifier)(implicit tag: LifecycleTag[R], pos: CodePositionMaterializer): SetElementDSL[T]
- Definition Classes
- SetDSLBase
- final def refResource[R <: Lifecycle[LifecycleF, T]](implicit tag: LifecycleTag[R], pos: CodePositionMaterializer): SetElementDSL[T]
- Definition Classes
- SetDSLBase
- final def refSet[I <: Set[_ <: T]](name: Identifier)(implicit arg0: Tag[I], pos: CodePositionMaterializer): SetElementDSL[T]
- Definition Classes
- SetDSLBase
- final def refSet[I <: Set[_ <: T]](implicit arg0: Tag[I], pos: CodePositionMaterializer): SetElementDSL[T]
- Definition Classes
- SetDSLBase
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def tagged(tags: BindingTag*): SetDSL[T]
- 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): SetElementDSL[T]
- Definition Classes
- SetDSLBase
- final def weak[I <: T](implicit arg0: Tag[I], pos: CodePositionMaterializer): SetElementDSL[T]
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.- Definition Classes
- SetDSLBase
- 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): SetElementDSL[T]
- Definition Classes
- SetDSLBase
- final def weakSet[I <: Set[_ <: T]](implicit arg0: Tag[I], pos: CodePositionMaterializer): SetElementDSL[T]
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.- Definition Classes
- SetDSLBase
- See also
Weak Sets https://izumi.7mind.io/distage/advanced-features#weak-sets