cc.factorie.model

IterableSingleFactor

class IterableSingleFactor[F <: Factor] extends Iterable[F]

An iterable collection for efficiently holding a single Factor. Used in various Template classes and in an implicit conversion from Factor to IterableSingleFactor so that unroll1,2,3,4 methods (which are supposed to return Iterable[Factor] can be written by end users to return a single Factor (which is then implicitly converted to this class).

Linear Supertypes
Iterable[F], IterableLike[F, Iterable[F]], Equals, GenIterable[F], GenIterableLike[F, Iterable[F]], Traversable[F], GenTraversable[F], GenericTraversableTemplate[F, Iterable], TraversableLike[F, Iterable[F]], GenTraversableLike[F, Iterable[F]], Parallelizable[F, ParIterable[F]], TraversableOnce[F], GenTraversableOnce[F], FilterMonadic[F, Iterable[F]], HasNewBuilder[F, Iterable[F]], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. IterableSingleFactor
  2. Iterable
  3. IterableLike
  4. Equals
  5. GenIterable
  6. GenIterableLike
  7. Traversable
  8. GenTraversable
  9. GenericTraversableTemplate
  10. TraversableLike
  11. GenTraversableLike
  12. Parallelizable
  13. TraversableOnce
  14. GenTraversableOnce
  15. FilterMonadic
  16. HasNewBuilder
  17. AnyRef
  18. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new IterableSingleFactor(factor: F)

Type Members

  1. type Self = Iterable[F]

    Attributes
    protected
    Definition Classes
    TraversableLike
  2. class WithFilter extends FilterMonadic[A, Repr]

    Definition Classes
    TraversableLike

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 ++[B >: F, That](that: GenTraversableOnce[B])(implicit bf: CanBuildFrom[Iterable[F], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  5. def ++:[B >: F, That](that: Traversable[B])(implicit bf: CanBuildFrom[Iterable[F], B, That]): That

    Definition Classes
    TraversableLike
  6. def ++:[B >: F, That](that: TraversableOnce[B])(implicit bf: CanBuildFrom[Iterable[F], B, That]): That

    Definition Classes
    TraversableLike
  7. def /:[B](z: B)(op: (B, F) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  8. def :\[B](z: B)(op: (F, B) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  9. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  11. def addString(b: StringBuilder): StringBuilder

    Definition Classes
    TraversableOnce
  12. def addString(b: StringBuilder, sep: String): StringBuilder

    Definition Classes
    TraversableOnce
  13. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder

    Definition Classes
    TraversableOnce
  14. def aggregate[B](z: B)(seqop: (B, F) ⇒ B, combop: (B, B) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  15. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  16. def canEqual(that: Any): Boolean

    Definition Classes
    IterableLike → Equals
  17. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. def collect[B, That](pf: PartialFunction[F, B])(implicit bf: CanBuildFrom[Iterable[F], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  19. def collectFirst[B](pf: PartialFunction[F, B]): Option[B]

    Definition Classes
    TraversableOnce
  20. def companion: GenericCompanion[Iterable]

    Definition Classes
    Iterable → GenIterable → Traversable → GenTraversable → GenericTraversableTemplate
  21. def copyToArray[B >: F](xs: Array[B], start: Int, len: Int): Unit

    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  22. def copyToArray[B >: F](xs: Array[B]): Unit

    Definition Classes
    TraversableOnce → GenTraversableOnce
  23. def copyToArray[B >: F](xs: Array[B], start: Int): Unit

    Definition Classes
    TraversableOnce → GenTraversableOnce
  24. def copyToBuffer[B >: F](dest: Buffer[B]): Unit

    Definition Classes
    TraversableOnce
  25. def count(p: (F) ⇒ Boolean): Int

    Definition Classes
    TraversableOnce → GenTraversableOnce
  26. def drop(n: Int): Iterable[F]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  27. def dropRight(n: Int): Iterable[F]

    Definition Classes
    IterableLike
  28. def dropWhile(p: (F) ⇒ Boolean): Iterable[F]

    Definition Classes
    TraversableLike → GenTraversableLike
  29. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  31. def exists(p: (F) ⇒ Boolean): Boolean

    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  32. val factor: F

  33. def filter(p: (F) ⇒ Boolean): Iterable[F]

    Definition Classes
    TraversableLike → GenTraversableLike
  34. def filterNot(p: (F) ⇒ Boolean): Iterable[F]

    Definition Classes
    TraversableLike → GenTraversableLike
  35. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  36. def find(p: (F) ⇒ Boolean): Option[F]

    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  37. def flatMap[B, That](f: (F) ⇒ GenTraversableOnce[B])(implicit bf: CanBuildFrom[Iterable[F], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  38. def flatten[B](implicit asTraversable: (F) ⇒ GenTraversableOnce[B]): Iterable[B]

    Definition Classes
    GenericTraversableTemplate
  39. def fold[A1 >: F](z: A1)(op: (A1, A1) ⇒ A1): A1

    Definition Classes
    TraversableOnce → GenTraversableOnce
  40. def foldLeft[B](z: B)(op: (B, F) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  41. def foldRight[B](z: B)(op: (F, B) ⇒ B): B

    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  42. def forall(p: (F) ⇒ Boolean): Boolean

    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  43. def foreach[U](f: (F) ⇒ U): Unit

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike → TraversableOnce → GenTraversableOnce → FilterMonadic
  44. def genericBuilder[B]: Builder[B, Iterable[B]]

    Definition Classes
    GenericTraversableTemplate
  45. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  46. def groupBy[K](f: (F) ⇒ K): Map[K, Iterable[F]]

    Definition Classes
    TraversableLike → GenTraversableLike
  47. def grouped(size: Int): Iterator[Iterable[F]]

    Definition Classes
    IterableLike
  48. def hasDefiniteSize: Boolean

    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  49. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  50. def head: F

    Definition Classes
    IterableSingleFactor → IterableLike → GenericTraversableTemplate → TraversableLike → GenTraversableLike
  51. def headOption: Option[F]

    Definition Classes
    TraversableLike → GenTraversableLike
  52. def init: Iterable[F]

    Definition Classes
    TraversableLike → GenTraversableLike
  53. def inits: Iterator[Iterable[F]]

    Definition Classes
    TraversableLike
  54. def isEmpty: Boolean

    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  55. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  56. final def isTraversableAgain: Boolean

    Definition Classes
    TraversableLike → GenTraversableLike → GenTraversableOnce
  57. def iterator: Iterator[F]

    Definition Classes
    IterableSingleFactor → IterableLike → GenIterableLike
  58. def last: F

    Definition Classes
    TraversableLike → GenTraversableLike
  59. def lastOption: Option[F]

    Definition Classes
    TraversableLike → GenTraversableLike
  60. def map[B, That](f: (F) ⇒ B)(implicit bf: CanBuildFrom[Iterable[F], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  61. def max[B >: F](implicit cmp: Ordering[B]): F

    Definition Classes
    TraversableOnce → GenTraversableOnce
  62. def maxBy[B](f: (F) ⇒ B)(implicit cmp: Ordering[B]): F

    Definition Classes
    TraversableOnce → GenTraversableOnce
  63. def min[B >: F](implicit cmp: Ordering[B]): F

    Definition Classes
    TraversableOnce → GenTraversableOnce
  64. def minBy[B](f: (F) ⇒ B)(implicit cmp: Ordering[B]): F

    Definition Classes
    TraversableOnce → GenTraversableOnce
  65. def mkString: String

    Definition Classes
    TraversableOnce → GenTraversableOnce
  66. def mkString(sep: String): String

    Definition Classes
    TraversableOnce → GenTraversableOnce
  67. def mkString(start: String, sep: String, end: String): String

    Definition Classes
    TraversableOnce → GenTraversableOnce
  68. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  69. def newBuilder: Builder[F, Iterable[F]]

    Attributes
    protected[this]
    Definition Classes
    GenericTraversableTemplate → HasNewBuilder
  70. def nonEmpty: Boolean

    Definition Classes
    TraversableOnce → GenTraversableOnce
  71. final def notify(): Unit

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

    Definition Classes
    AnyRef
  73. def par: ParIterable[F]

    Definition Classes
    Parallelizable
  74. def parCombiner: Combiner[F, ParIterable[F]]

    Attributes
    protected[this]
    Definition Classes
    TraversableLike → Parallelizable
  75. def partition(p: (F) ⇒ Boolean): (Iterable[F], Iterable[F])

    Definition Classes
    TraversableLike → GenTraversableLike
  76. def product[B >: F](implicit num: Numeric[B]): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  77. def reduce[A1 >: F](op: (A1, A1) ⇒ A1): A1

    Definition Classes
    TraversableOnce → GenTraversableOnce
  78. def reduceLeft[B >: F](op: (B, F) ⇒ B): B

    Definition Classes
    TraversableOnce
  79. def reduceLeftOption[B >: F](op: (B, F) ⇒ B): Option[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  80. def reduceOption[A1 >: F](op: (A1, A1) ⇒ A1): Option[A1]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  81. def reduceRight[B >: F](op: (F, B) ⇒ B): B

    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  82. def reduceRightOption[B >: F](op: (F, B) ⇒ B): Option[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  83. def repr: Iterable[F]

    Definition Classes
    TraversableLike → GenTraversableLike
  84. def reversed: List[F]

    Attributes
    protected[this]
    Definition Classes
    TraversableOnce
  85. def sameElements[B >: F](that: GenIterable[B]): Boolean

    Definition Classes
    IterableLike → GenIterableLike
  86. def scan[B >: F, That](z: B)(op: (B, B) ⇒ B)(implicit cbf: CanBuildFrom[Iterable[F], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  87. def scanLeft[B, That](z: B)(op: (B, F) ⇒ B)(implicit bf: CanBuildFrom[Iterable[F], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  88. def scanRight[B, That](z: B)(op: (F, B) ⇒ B)(implicit bf: CanBuildFrom[Iterable[F], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
    Annotations
    @migration
    Migration

    (Changed in version 2.9.0) The behavior of scanRight has changed. The previous behavior can be reproduced with scanRight.reverse.

  89. def seq: Iterable[F]

    Definition Classes
    Iterable → GenIterable → Traversable → GenTraversable → Parallelizable → TraversableOnce → GenTraversableOnce
  90. def size: Int

    Definition Classes
    IterableSingleFactor → GenTraversableLike → TraversableOnce → GenTraversableOnce
  91. def slice(from: Int, until: Int): Iterable[F]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  92. def sliding(size: Int, step: Int): Iterator[Iterable[F]]

    Definition Classes
    IterableLike
  93. def sliding(size: Int): Iterator[Iterable[F]]

    Definition Classes
    IterableLike
  94. def span(p: (F) ⇒ Boolean): (Iterable[F], Iterable[F])

    Definition Classes
    TraversableLike → GenTraversableLike
  95. def splitAt(n: Int): (Iterable[F], Iterable[F])

    Definition Classes
    TraversableLike → GenTraversableLike
  96. def stringPrefix: String

    Definition Classes
    TraversableLike → GenTraversableLike
  97. def sum[B >: F](implicit num: Numeric[B]): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  98. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  99. def tail: Iterable[F]

    Definition Classes
    TraversableLike → GenTraversableLike
  100. def tails: Iterator[Iterable[F]]

    Definition Classes
    TraversableLike
  101. def take(n: Int): Iterable[F]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  102. def takeRight(n: Int): Iterable[F]

    Definition Classes
    IterableLike
  103. def takeWhile(p: (F) ⇒ Boolean): Iterable[F]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  104. def thisCollection: Iterable[F]

    Attributes
    protected[this]
    Definition Classes
    IterableLike → TraversableLike
  105. def to[Col[_]](implicit cbf: CanBuildFrom[Nothing, F, Col[F]]): Col[F]

    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  106. def toArray[B >: F](implicit arg0: ClassTag[B]): Array[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  107. def toBuffer[B >: F]: Buffer[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  108. def toCollection(repr: Iterable[F]): Iterable[F]

    Attributes
    protected[this]
    Definition Classes
    IterableLike → TraversableLike
  109. def toIndexedSeq: IndexedSeq[F]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  110. def toIterable: Iterable[F]

    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  111. def toIterator: Iterator[F]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableOnce
  112. def toList: List[F]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  113. def toMap[T, U](implicit ev: <:<[F, (T, U)]): Map[T, U]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  114. def toSeq: Seq[F]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  115. def toSet[B >: F]: Set[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  116. def toStream: Stream[F]

    Definition Classes
    IterableLike → TraversableLike → GenTraversableOnce
  117. def toString(): String

    Definition Classes
    TraversableLike → Any
  118. def toTraversable: Traversable[F]

    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  119. def toVector: Vector[F]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  120. def transpose[B](implicit asTraversable: (F) ⇒ GenTraversableOnce[B]): Iterable[Iterable[B]]

    Definition Classes
    GenericTraversableTemplate
    Annotations
    @migration
    Migration

    (Changed in version 2.9.0) transpose throws an IllegalArgumentException if collections are not uniformly sized.

  121. def unzip[A1, A2](implicit asPair: (F) ⇒ (A1, A2)): (Iterable[A1], Iterable[A2])

    Definition Classes
    GenericTraversableTemplate
  122. def unzip3[A1, A2, A3](implicit asTriple: (F) ⇒ (A1, A2, A3)): (Iterable[A1], Iterable[A2], Iterable[A3])

    Definition Classes
    GenericTraversableTemplate
  123. def view(from: Int, until: Int): IterableView[F, Iterable[F]]

    Definition Classes
    IterableLike → TraversableLike
  124. def view: IterableView[F, Iterable[F]]

    Definition Classes
    IterableLike → TraversableLike
  125. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  128. def withFilter(p: (F) ⇒ Boolean): FilterMonadic[F, Iterable[F]]

    Definition Classes
    TraversableLike → FilterMonadic
  129. def zip[A1 >: F, B, That](that: GenIterable[B])(implicit bf: CanBuildFrom[Iterable[F], (A1, B), That]): That

    Definition Classes
    IterableLike → GenIterableLike
  130. def zipAll[B, A1 >: F, That](that: GenIterable[B], thisElem: A1, thatElem: B)(implicit bf: CanBuildFrom[Iterable[F], (A1, B), That]): That

    Definition Classes
    IterableLike → GenIterableLike
  131. def zipWithIndex[A1 >: F, That](implicit bf: CanBuildFrom[Iterable[F], (A1, Int), That]): That

    Definition Classes
    IterableLike → GenIterableLike

Deprecated Value Members

  1. def /:\[A1 >: F](z: A1)(op: (A1, A1) ⇒ A1): A1

    Definition Classes
    GenTraversableOnce
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) use fold instead

Inherited from Iterable[F]

Inherited from IterableLike[F, Iterable[F]]

Inherited from Equals

Inherited from GenIterable[F]

Inherited from GenIterableLike[F, Iterable[F]]

Inherited from Traversable[F]

Inherited from GenTraversable[F]

Inherited from GenericTraversableTemplate[F, Iterable]

Inherited from TraversableLike[F, Iterable[F]]

Inherited from GenTraversableLike[F, Iterable[F]]

Inherited from Parallelizable[F, ParIterable[F]]

Inherited from TraversableOnce[F]

Inherited from GenTraversableOnce[F]

Inherited from FilterMonadic[F, Iterable[F]]

Inherited from HasNewBuilder[F, Iterable[F]]

Inherited from AnyRef

Inherited from Any

Ungrouped