resource

ManagedTraversable

trait ManagedTraversable[+B, A] extends Traversable[B]

This trait provides a means to ensure traversable access to items inside a resource, while ensuring that the resource is opened/closed appropriately before/after the traversal. This class can be dangerous because it always tries to open and close the resource for every call to foreach. This is practically ever method call on a Traversable besides the "view" method.

Linear Supertypes
Traversable[B], GenTraversable[B], GenericTraversableTemplate[B, Traversable], TraversableLike[B, Traversable[B]], GenTraversableLike[B, Traversable[B]], Parallelizable[B, ParIterable[B]], TraversableOnce[B], GenTraversableOnce[B], FilterMonadic[B, Traversable[B]], HasNewBuilder[B, Traversable[B]], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ManagedTraversable
  2. Traversable
  3. GenTraversable
  4. GenericTraversableTemplate
  5. TraversableLike
  6. GenTraversableLike
  7. Parallelizable
  8. TraversableOnce
  9. GenTraversableOnce
  10. FilterMonadic
  11. HasNewBuilder
  12. AnyRef
  13. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. type Self = Traversable[B]

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

    Definition Classes
    TraversableLike

Abstract Value Members

  1. abstract def internalForeach[U](resource: A, f: (B) ⇒ U): Unit

    This method gives us an iterator over items in a resource.

    This method gives us an iterator over items in a resource.

    Attributes
    protected
  2. abstract val resource: ManagedResource[A]

    The resource we plan to traverse through

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

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

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

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

    Definition Classes
    TraversableOnce → GenTraversableOnce
  8. def :\[B](z: B)(op: (B, 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, B) ⇒ B, combop: (B, B) ⇒ B): B

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

    Definition Classes
    Any
  16. def clone(): AnyRef

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

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

    Definition Classes
    TraversableOnce
  19. def companion: GenericCompanion[Traversable]

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

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

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

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

    Definition Classes
    TraversableOnce
  24. def count(p: (B) ⇒ Boolean): Int

    Definition Classes
    TraversableOnce → GenTraversableOnce
  25. def drop(n: Int): Traversable[B]

    Definition Classes
    TraversableLike → GenTraversableLike
  26. def dropWhile(p: (B) ⇒ Boolean): Traversable[B]

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

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

    Definition Classes
    AnyRef → Any
  29. def exists(p: (B) ⇒ Boolean): Boolean

    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  30. def filter(p: (B) ⇒ Boolean): Traversable[B]

    Definition Classes
    TraversableLike → GenTraversableLike
  31. def filterNot(p: (B) ⇒ Boolean): Traversable[B]

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  33. def find(p: (B) ⇒ Boolean): Option[B]

    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  34. def flatMap[B, That](f: (B) ⇒ GenTraversableOnce[B])(implicit bf: CanBuildFrom[Traversable[B], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  35. def flatten[B](implicit asTraversable: (B) ⇒ GenTraversableOnce[B]): Traversable[B]

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

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

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

    Definition Classes
    TraversableOnce → GenTraversableOnce
  39. def forall(p: (B) ⇒ Boolean): Boolean

    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  40. def foreach[U](f: (B) ⇒ U): Unit

    Executes a given function against all items in the resource.

    Executes a given function against all items in the resource. The resource is opened/closed during the call to this method.

    Definition Classes
    ManagedTraversable → GenericTraversableTemplate → TraversableLike → GenTraversableLike → TraversableOnce → GenTraversableOnce → FilterMonadic
  41. def genericBuilder[B]: Builder[B, Traversable[B]]

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

    Definition Classes
    AnyRef → Any
  43. def groupBy[K](f: (B) ⇒ K): Map[K, Traversable[B]]

    Definition Classes
    TraversableLike → GenTraversableLike
  44. def handleErrorsDuringTraversal(ex: List[Throwable]): Unit

    This method is called if an exception happens during traversal of the collection.

    This method is called if an exception happens during traversal of the collection. We allow subclasses to override this to change the default behavior of resource related errors on traversal.

  45. def hasDefiniteSize: Boolean

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

    Definition Classes
    AnyRef → Any
  47. def head: B

    Definition Classes
    TraversableLike → GenTraversableLike
  48. def headOption: Option[B]

    Definition Classes
    TraversableLike → GenTraversableLike
  49. def ignoreError(error: Exception): Boolean

    This method determines if the error can be ignored and traversable continues

  50. def init: Traversable[B]

    Definition Classes
    TraversableLike → GenTraversableLike
  51. def inits: Iterator[Traversable[B]]

    Definition Classes
    TraversableLike
  52. def isEmpty: Boolean

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

    Definition Classes
    Any
  54. final def isTraversableAgain: Boolean

    Definition Classes
    TraversableLike → GenTraversableLike → GenTraversableOnce
  55. def last: B

    Definition Classes
    TraversableLike → GenTraversableLike
  56. def lastOption: Option[B]

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

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

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

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

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

    Definition Classes
    TraversableOnce → GenTraversableOnce
  62. def mkString: String

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

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

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

    Definition Classes
    AnyRef
  66. def newBuilder: Builder[B, Traversable[B]]

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

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

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

    Definition Classes
    AnyRef
  70. def par: ParIterable[B]

    Definition Classes
    Parallelizable
  71. def parCombiner: Combiner[B, ParIterable[B]]

    Attributes
    protected[this]
    Definition Classes
    TraversableLike → Parallelizable
  72. def partition(p: (B) ⇒ Boolean): (Traversable[B], Traversable[B])

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

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

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

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

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

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

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

    Definition Classes
    TraversableOnce → GenTraversableOnce
  80. def repr: Traversable[B]

    Definition Classes
    TraversableLike → GenTraversableLike
  81. def reversed: List[B]

    Attributes
    protected[this]
    Definition Classes
    TraversableOnce
  82. def scan[B >: B, That](z: B)(op: (B, B) ⇒ B)(implicit cbf: CanBuildFrom[Traversable[B], B, That]): That

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

    Definition Classes
    TraversableLike → GenTraversableLike
  84. def scanRight[B, That](z: B)(op: (B, B) ⇒ B)(implicit bf: CanBuildFrom[Traversable[B], 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.

  85. def seq: Traversable[B]

    Definition Classes
    Traversable → GenTraversable → Parallelizable → TraversableOnce → GenTraversableOnce
  86. def size: Int

    Definition Classes
    TraversableOnce → GenTraversableOnce
  87. def slice(from: Int, until: Int): Traversable[B]

    Definition Classes
    TraversableLike → GenTraversableLike
  88. def span(p: (B) ⇒ Boolean): (Traversable[B], Traversable[B])

    Definition Classes
    TraversableLike → GenTraversableLike
  89. def splitAt(n: Int): (Traversable[B], Traversable[B])

    Definition Classes
    TraversableLike → GenTraversableLike
  90. def stringPrefix: String

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

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

    Definition Classes
    AnyRef
  93. def tail: Traversable[B]

    Definition Classes
    TraversableLike → GenTraversableLike
  94. def tails: Iterator[Traversable[B]]

    Definition Classes
    TraversableLike
  95. def take(n: Int): Traversable[B]

    Definition Classes
    TraversableLike → GenTraversableLike
  96. def takeWhile(p: (B) ⇒ Boolean): Traversable[B]

    Definition Classes
    TraversableLike → GenTraversableLike
  97. def thisCollection: Traversable[B]

    Attributes
    protected[this]
    Definition Classes
    TraversableLike
  98. def to[Col[_]](implicit cbf: CanBuildFrom[Nothing, B, Col[B]]): Col[B]

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

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

    Definition Classes
    TraversableOnce → GenTraversableOnce
  101. def toCollection(repr: Traversable[B]): Traversable[B]

    Attributes
    protected[this]
    Definition Classes
    TraversableLike
  102. def toIndexedSeq: IndexedSeq[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  103. def toIterable: Iterable[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  104. def toIterator: Iterator[B]

    Definition Classes
    TraversableLike → GenTraversableOnce
  105. def toList: List[B]

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

    Definition Classes
    TraversableOnce → GenTraversableOnce
  107. def toSeq: Seq[B]

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

    Definition Classes
    TraversableOnce → GenTraversableOnce
  109. def toStream: Stream[B]

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

    Definition Classes
    TraversableLike → Any
  111. def toTraversable: Traversable[B]

    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  112. def toVector: Vector[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  113. def transpose[B](implicit asTraversable: (B) ⇒ GenTraversableOnce[B]): Traversable[Traversable[B]]

    Definition Classes
    GenericTraversableTemplate
    Annotations
    @migration
    Migration

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

  114. def unzip[A1, A2](implicit asPair: (B) ⇒ (A1, A2)): (Traversable[A1], Traversable[A2])

    Definition Classes
    GenericTraversableTemplate
  115. def unzip3[A1, A2, A3](implicit asTriple: (B) ⇒ (A1, A2, A3)): (Traversable[A1], Traversable[A2], Traversable[A3])

    Definition Classes
    GenericTraversableTemplate
  116. def view(from: Int, until: Int): TraversableView[B, Traversable[B]]

    Definition Classes
    TraversableLike
  117. def view: TraversableView[B, Traversable[B]]

    Definition Classes
    TraversableLike
  118. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  121. def withFilter(p: (B) ⇒ Boolean): FilterMonadic[B, Traversable[B]]

    Definition Classes
    TraversableLike → FilterMonadic

Deprecated Value Members

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

    Definition Classes
    GenTraversableOnce
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) use fold instead

Inherited from Traversable[B]

Inherited from GenTraversable[B]

Inherited from GenericTraversableTemplate[B, Traversable]

Inherited from TraversableLike[B, Traversable[B]]

Inherited from GenTraversableLike[B, Traversable[B]]

Inherited from Parallelizable[B, ParIterable[B]]

Inherited from TraversableOnce[B]

Inherited from GenTraversableOnce[B]

Inherited from FilterMonadic[B, Traversable[B]]

Inherited from HasNewBuilder[B, Traversable[B]]

Inherited from AnyRef

Inherited from Any

No Group