cc.factorie.util.Cubbie

CubbieListSlot

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

A slot that contains a list of cubbies.

A

the type of the cubbies in the list.

name

the name of the slot.

constructor

the cubbie constructor that will be used to create cubbies for underyling map objects.

Linear Supertypes
Serializable, Serializable, Product, Equals, Slot[Seq[A]], AbstractSlot[Seq[A]], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CubbieListSlot
  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 CubbieListSlot(name: String, constructor: () ⇒ A)

    name

    the name of the slot.

    constructor

    the cubbie constructor that will be used to create cubbies for underyling map objects.

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: Seq[A]): Unit

    Set the sequence of cubbies.

    Set the sequence of cubbies. The slot will only store the corresponding list of maps in its field.

    value

    value to set.

    Definition Classes
    CubbieListSlotSlot
  5. def :=(opt: Option[Seq[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: Seq[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: Seq[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(): Seq[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 cubbie constructor that will be used to create cubbies for underyling map objects.

  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
    CubbieListSlotSlotAbstractSlot
  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[Seq[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[Seq[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: Seq[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: Seq[A]

    Returns the list of cubbies in this slot.

    Returns the list of cubbies in this slot. The underlying map is expected to contain a list of maps for the field corresponding to this slot. The slot will then convert the maps to cubbies using the provided constructor.

    returns

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

    Definition Classes
    CubbieListSlotSlotAbstractSlot
  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[Seq[A]]

Inherited from AbstractSlot[Seq[A]]

Inherited from AnyRef

Inherited from Any

Ungrouped