cc.factorie.util.Attr

attr

object attr

A collection of attributes, keyed by the attribute class.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. attr
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

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 +=[C <: AnyRef](value: C): C

    Add the given attribute, with key equal to its class.

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

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

    Definition Classes
    Any
  7. def all[C <: AnyRef]()(implicit m: ClassTag[C]): Seq[C]

    Returns a sequence of all attributes with classes assignable to C (i.

    Returns a sequence of all attributes with classes assignable to C (i.e. that are either C or a subclass of C).

  8. def apply[C <: AnyRef](key: Class[C]): C

    Fetch the first value associated with the given class.

    Fetch the first value associated with the given class. If none present, return null.

  9. def apply[C <: AnyRef]()(implicit m: ClassTag[C]): C

    Fetch the first value associated with the given class.

    Fetch the first value associated with the given class. If none present, return null.

  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def capacity: Int

    The capacity of the array holding the attributes.

    The capacity of the array holding the attributes. May be more than "length", the number of attributes present.

  12. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def contains(key: Class[_]): Boolean

    Return true if there is an attribute of class equal to or subclass of the argument.

  14. def contains[C <: AnyRef]()(implicit m: ClassTag[C]): Boolean

    Return true if there is an attribute of class equal to or subclass of the argument.

  15. def ensureCapacity(cap: Int): Unit

    Make sure there is capacity of at least "cap"

  16. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  18. def exactly[C <: AnyRef]()(implicit m: ClassTag[C]): C

    Fetch the first attribute who class is exactly equal to the given class.

    Fetch the first attribute who class is exactly equal to the given class. If none present, return null.

  19. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. def get[C <: AnyRef](implicit m: ClassTag[C]): Option[C]

  21. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  22. def getOrElse[C <: AnyRef](defaultValue: C)(implicit m: ClassTag[C]): C

  23. def getOrElseUpdate[C <: AnyRef](defaultValue: ⇒ C)(implicit m: ClassTag[C]): C

  24. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  25. def increaseCapacity(incr: Int): Unit

    Increase capacity by "incr".

  26. final def index[C <: AnyRef]()(implicit m: ClassTag[C]): Int

    Returns the index of the last attribute whose class is assignable from the argument.

    Returns the index of the last attribute whose class is assignable from the argument. Attributes occur in the order in which they were inserted. Note this means you can add a:MyClass, then add b:SubclassOfMyClass, then index[MyClass] will return the index of "b".

    Annotations
    @inline()
  27. final def index(key: Class[_]): Int

    Returns the index of the last attribute whose class is assignable from the argument.

    Returns the index of the last attribute whose class is assignable from the argument. Attributes occur in the order in which they were inserted. Note this means you can add a:MyClass, then add b:SubclassOfMyClass, then index[MyClass] will return the index of "b".

    Annotations
    @inline()
  28. final def indexExactly(key: Class[_]): Int

    Return the index of the last attribute whose class is exactly the argument.

    Return the index of the last attribute whose class is exactly the argument. Attributes occur in the order in which they were inserted.

    Annotations
    @inline()
  29. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  30. def length: Int

    The number of attributes present.

  31. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  34. def remove[C <: AnyRef](implicit m: ClassTag[C]): Unit

    Remove all attributes with class matching or subclass of C.

    Remove all attributes with class matching or subclass of C. For example, to remove all attributes call remove[AnyRef]. If call results in no removals, will not throw an Error.

  35. def removeIndex(i: Int): Unit

    Remove the attribute at index i.

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

    Definition Classes
    AnyRef
  37. def toString(): String

    Definition Classes
    attr → AnyRef → Any
  38. def trimCapacity(): Unit

    Re-allocate the attribute array to remove any excess capacity

  39. def values: Seq[AnyRef]

    Return a sequence of all attributes

  40. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped