cc.factorie.util.Cubbie

CubbieSlot

case class CubbieSlot[A <: Cubbie](name: String, constructor: () ⇒ A) extends Slot[A] with Product with Serializable

A slot that contains a cubbie.

A

the type of cubbie the slot contains.

name

the name of the slot.

constructor

the constructor to create the contained cubbie wrapper with.

Linear Supertypes
Serializable, Serializable, Product, Equals, Slot[A], AbstractSlot[A], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CubbieSlot
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Slot
  7. AbstractSlot
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CubbieSlot(name: String, constructor: () ⇒ A)

    name

    the name of the slot.

    constructor

    the constructor to create the contained cubbie wrapper with.

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def :=(value: A): Unit

    Stores the map underlying the passed in cubbie into the underyling map of this cubbie.

    Stores the map underlying the passed in cubbie into the underyling map of this cubbie.

    value

    value to set.

    Definition Classes
    CubbieSlotSlot
  5. def :=(opt: Option[A]): Unit

    Set the value of this slot using an option.

    Set the value of this slot using an option. If parameter is Some(value) the value is set, if None nothing is changed.

    opt

    the option to use.

    Definition Classes
    Slot
  6. def :=!(value: A)(implicit preHook: (AbstractSlot[Any], Any) ⇒ Unit): Unit

    Set a value for this slot but inform the provided hook before this happens.

    Set a value for this slot but inform the provided hook before this happens.

    value

    the value to set.

    preHook

    the hook to call before setting the value.

    Definition Classes
    Slot
  7. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  8. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  9. def apply(value: A): Cubbie.this.type

    Set the value and return the containing Cubbie.

    Set the value and return the containing Cubbie.

    value

    the value to set.

    returns

    the cubbie this slot belongs to.

    Definition Classes
    Slot
  10. def apply(): A

    Convenience method for more concise access to slot value.

    Convenience method for more concise access to slot value.

    returns

    value of the slot.

    Definition Classes
    AbstractSlot
  11. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  12. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. val constructor: () ⇒ A

    the constructor to create the contained cubbie wrapper with.

  14. def cubbie: Cubbie.this.type

    The cubbie this slot is contained in.

    The cubbie this slot is contained in.

    returns

    this cubbie.

    Definition Classes
    AbstractSlot
  15. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  16. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  17. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  18. def isDefined: Boolean

    Does the cubbie have this slot.

    Does the cubbie have this slot.

    returns

    true iff the underyling map has this slot.

    Definition Classes
    Slot
  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. val name: String

    the name of the slot.

    the name of the slot.

    Definition Classes
    CubbieSlotSlotAbstractSlot
  21. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  24. def opt: Option[A]

    Returns Some(value) if the cubbie has the given slot, or None otherwise.

    Returns Some(value) if the cubbie has the given slot, or None otherwise.

    returns

    Some(value) if the cubbie has the given slot, or None otherwise.

    Definition Classes
    SlotAbstractSlot
  25. def rawPut(value: Any): Unit

    Set a raw value into the underlying map.

    Set a raw value into the underlying map. Should generally only be used in other library code.

    value

    the value to be set.

    Definition Classes
    Slot
  26. def set(opt: Option[A]): Cubbie.this.type

    Set the value of this slot using an option.

    Set the value of this slot using an option. If parameter is Some(value) the value is set, if None nothing is changed. Returns this cubbie.

    opt

    the option to use.

    returns

    the encompassing cubbie.

    Definition Classes
    Slot
  27. def set(value: A): Cubbie.this.type

    Set value of slot and return this Cubbie.

    Set value of slot and return this Cubbie.

    value

    value to set.

    returns

    this cubbie.

    Definition Classes
    Slot
  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  29. def toString(): String

    Definition Classes
    Slot → AnyRef → Any
  30. def value: A

    Return the cubbie contained in this slot.

    Return the cubbie contained in this slot. This assumes that the underlying map has a corresponding field that contains a map. This map is then wrapped with a cubbie created by the given constructor.

    returns

    the value of slot. May throw an exception if the underlying map has no field corresponding to this slot.

    Definition Classes
    CubbieSlotSlotAbstractSlot
  31. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Slot[A]

Inherited from AbstractSlot[A]

Inherited from AnyRef

Inherited from Any

Ungrouped