cc.factorie.util.Cubbie

Slot

trait Slot[T] extends AbstractSlot[T]

Default implementation of an AbstractSlot. param name the name of the slot.

T

the type of the attribute.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Slot
  2. AbstractSlot
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def :=(value: T): Unit

    Set the value for this slot.

    Set the value for this slot.

    value

    value to set.

  2. abstract val name: String

    The name of this slot.

    The name of this slot. This corresponds to the map field the slot is using to store its value.

    returns

    Definition Classes
    SlotAbstractSlot
  3. abstract def value: T

    The current value of the slot.

    The current value of the slot.

    returns

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

    Definition Classes
    SlotAbstractSlot

Concrete 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 :=(opt: Option[T]): 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.

  5. def :=!(value: T)(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.

  6. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  8. def apply(value: T): 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.

  9. def apply(): T

    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
  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. 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
  13. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  17. def hashCode(): Int

    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.

  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  23. def opt: Option[T]

    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
  24. 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.

  25. def set(opt: Option[T]): 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.

  26. def set(value: T): 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.

  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  28. def toString(): String

    Definition Classes
    Slot → AnyRef → Any
  29. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AbstractSlot[T]

Inherited from AnyRef

Inherited from Any

Ungrouped