class PathAwareTraversal[+A] extends Traversal[A]

Linear Supertypes
Traversal[A], IterableFactoryDefaults[A, Traversal], IterableOps[A, Traversal, Traversal[A]], IterableOnceOps[A, Traversal, Traversal[A]], IterableOnce[A], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PathAwareTraversal
  2. Traversal
  3. IterableFactoryDefaults
  4. IterableOps
  5. IterableOnceOps
  6. IterableOnce
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new PathAwareTraversal(elementsWithPath: IterableOnce[(A, Vector[Any])])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ++[B >: A](suffix: IterableOnce[B]): Traversal[B]
    Definition Classes
    IterableOps
    Annotations
    @inline()
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. final def addString(b: StringBuilder): StringBuilder
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  6. final def addString(b: StringBuilder, sep: String): StringBuilder
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  7. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder
    Definition Classes
    IterableOnceOps
  8. def aggregate(into: Growable[A]): Traversal[A]

    aggregate all objects at this point into the given collection (side effect)

    aggregate all objects at this point into the given collection (side effect)

    Definition Classes
    Traversal
    Annotations
    @Doc()
    Example:
    1. val xs = mutable.ArrayBuffer.empty[A]
      myTraversal.aggregate(xs).foo.bar
      // xs will be filled once `myTraversal` is executed
  9. def and(traversals: (Traversal[A]) => Traversal[_]*): Traversal[A]

    only preserves elements for which _all of_ the given traversals have at least one result Works for arbitrary amount of 'AND' traversals.

    only preserves elements for which _all of_ the given traversals have at least one result Works for arbitrary amount of 'AND' traversals.

    Definition Classes
    Traversal
    Annotations
    @Doc()
    Example:
    1. .and(_.label("someLabel"),
           _.has("someProperty"))
  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. def cast[B]: Traversal[B]

    casts all elements to given type note: this can lead to casting errors

    casts all elements to given type note: this can lead to casting errors

    Definition Classes
    Traversal
    Annotations
    @Doc()
    See also

    collectAll
  12. def choose[BranchOn >: Null, NewEnd](on: (Traversal[A]) => Traversal[BranchOn])(options: PartialFunction[BranchOn, (Traversal[A]) => Traversal[NewEnd]]): Traversal[NewEnd]

    Branch step: based on the current element, match on something given a traversal, and provide resulting traversals based on the matched element.

    Branch step: based on the current element, match on something given a traversal, and provide resulting traversals based on the matched element. Allows to implement conditional semantics: if, if/else, if/elseif, if/elseif/else, ...

    BranchOn

    required to be >: Null because the implementation is using null as the default value. I didn't find a better way to implement all semantics with the niceties of PartialFunction, and also yolo...

    NewEnd

    The element type of the resulting traversal

    on

    Traversal to get to what you want to match on

    options

    PartialFunction from the matched element to the resulting traversal

    Definition Classes
    Traversal
    Annotations
    @Doc()
    Example:
    1. .choose(_.property(Name)) {
        case "L1" => _.out
        case "R1" => _.repeat(_.out)(_.times(3))
        case _ => _.in
      }
    See also

    LogicalStepsTests

  13. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  14. def coalesce[NewEnd](options: (Traversal[A]) => Traversal[NewEnd]*): Traversal[NewEnd]

    Branch step: evaluates the provided traversals in order and returns the first traversal that emits at least one element.

    Branch step: evaluates the provided traversals in order and returns the first traversal that emits at least one element.

    Definition Classes
    Traversal
    Annotations
    @Doc()
    Example:
    1. .coalesce(
        _.out("label1"),
        _.in("label2"),
        _.in("label3")
      )
    See also

    LogicalStepsTests

  15. def coll: Traversal[A]
    Attributes
    protected
    Definition Classes
    Traversal → IterableOps
  16. def collect[B](pf: PartialFunction[A, B]): Traversal[B]
    Definition Classes
    PathAwareTraversal → IterableOps → IterableOnceOps
  17. def collectAll[B](implicit arg0: ClassTag[B]): Traversal[B]

    collects and all elements of the given type

    collects and all elements of the given type

    Definition Classes
    Traversal
    Annotations
    @Doc()
  18. def collectFirst[B](pf: PartialFunction[A, B]): Option[B]
    Definition Classes
    IterableOnceOps
  19. def concat[B >: A](suffix: IterableOnce[B]): Traversal[B]
    Definition Classes
    IterableOps
  20. def copyToArray[B >: A](xs: Array[B], start: Int, len: Int): Int
    Definition Classes
    IterableOnceOps
  21. def copyToArray[B >: A](xs: Array[B], start: Int): Int
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecatedOverriding()
  22. def copyToArray[B >: A](xs: Array[B]): Int
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecatedOverriding()
  23. def corresponds[B](that: IterableOnce[B])(p: (A, B) => Boolean): Boolean
    Definition Classes
    IterableOnceOps
  24. def count: Traversal[Int]
    Definition Classes
    Traversal
  25. def count(p: (A) => Boolean): Int
    Definition Classes
    IterableOnceOps
  26. def dedup: Traversal[A]

    Deduplicate elements of this traversal - a.k.a.

    Deduplicate elements of this traversal - a.k.a. distinct, unique, ...

    Definition Classes
    PathAwareTraversalTraversal
  27. def dedupBy(fun: (A) => Any): Traversal[A]

    deduplicate elements of this traversal by a given function

    deduplicate elements of this traversal by a given function

    Definition Classes
    PathAwareTraversalTraversal
  28. def drop(n: Int): Traversal[A]
    Definition Classes
    IterableOps → IterableOnceOps
  29. def dropRight(n: Int): Traversal[A]
    Definition Classes
    IterableOps
  30. def dropWhile(p: (A) => Boolean): Traversal[A]
    Definition Classes
    IterableOps → IterableOnceOps
  31. val elementsWithPath: IterableOnce[(A, Vector[Any])]
  32. def empty: Traversal[A]
    Definition Classes
    IterableFactoryDefaults → IterableOps
  33. def enablePathTracking: PathAwareTraversal[A]
    Definition Classes
    Traversal
    Annotations
    @Doc()
  34. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  35. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  36. def exists(p: (A) => Boolean): Boolean
    Definition Classes
    IterableOnceOps
  37. def filter(pred: (A) => Boolean): Traversal[A]
    Definition Classes
    PathAwareTraversal → IterableOps → IterableOnceOps
  38. def filterNot(pred: (A) => Boolean): Traversal[A]
    Definition Classes
    PathAwareTraversal → IterableOps → IterableOnceOps
  39. def find(p: (A) => Boolean): Option[A]
    Definition Classes
    IterableOnceOps
  40. def flatMap[B](f: (A) => IterableOnce[B]): Traversal[B]
    Definition Classes
    PathAwareTraversal → IterableOps → IterableOnceOps
  41. def flatten[B](implicit asIterable: (A) => IterableOnce[B]): Traversal[B]
    Definition Classes
    IterableOps → IterableOnceOps
  42. def fold[A1 >: A](z: A1)(op: (A1, A1) => A1): A1
    Definition Classes
    IterableOnceOps
  43. def foldLeft[B](z: B)(op: (B, A) => B): B
    Definition Classes
    IterableOnceOps
  44. def foldRight[B](z: B)(op: (A, B) => B): B
    Definition Classes
    IterableOnceOps
  45. def forall(p: (A) => Boolean): Boolean
    Definition Classes
    IterableOnceOps
  46. def foreach[U](f: (A) => U): Unit
    Definition Classes
    IterableOnceOps
  47. def fromSpecific(coll: IterableOnce[A]): Traversal[A]
    Attributes
    protected
    Definition Classes
    IterableFactoryDefaults → IterableOps
  48. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  49. def groupBy[K](f: (A) => K): Map[K, Traversal[A]]
    Definition Classes
    IterableOps
  50. def groupCount[B](by: (A) => B): Map[B, Int]

    group elements by a given transformation function and count how often the results appear

    group elements by a given transformation function and count how often the results appear

    Definition Classes
    Traversal
    Annotations
    @Doc()
  51. def groupCount[B >: A]: Map[B, Int]

    group elements and count how often they appear

    group elements and count how often they appear

    Definition Classes
    Traversal
    Annotations
    @Doc()
  52. def groupMap[K, B](key: (A) => K)(f: (A) => B): Map[K, Traversal[B]]
    Definition Classes
    IterableOps
  53. def groupMapReduce[K, B](key: (A) => K)(f: (A) => B)(reduce: (B, B) => B): Map[K, B]
    Definition Classes
    IterableOps
  54. def grouped(size: Int): Iterator[Traversal[A]]
    Definition Classes
    IterableOps
  55. def hasNext: Boolean
    Definition Classes
    Traversal
  56. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  57. def head: A
    Definition Classes
    IterableOps
  58. def headOption: Option[A]
    Definition Classes
    IterableOps
  59. def help[B >: A](implicit elementType: ClassTag[B], searchPackages: DocSearchPackages): String

    Print help/documentation based on the current elementType A.

    Print help/documentation based on the current elementType A. Relies on all step extensions being annotated with @Traversal / @Doc Note that this works independently of tab completion and implicit conversions in scope - it will simply list all documented steps in the classpath

    Definition Classes
    Traversal
    Annotations
    @Doc()
  60. def helpVerbose[B >: A](implicit elementType: ClassTag[B], searchPackages: DocSearchPackages): String
    Definition Classes
    Traversal
    Annotations
    @Doc()
  61. def init: Traversal[A]
    Definition Classes
    IterableOps
  62. def inits: Iterator[Traversal[A]]
    Definition Classes
    IterableOps
  63. def isEmpty: Boolean
    Definition Classes
    IterableOnceOps
  64. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  65. def isTraversableAgain: Boolean
    Definition Classes
    IterableOps → IterableOnceOps
  66. def iterableFactory: IterableFactory[Traversal]
    Definition Classes
    Traversal → IterableOps
  67. def iterate(): Unit

    Execute the traversal without returning anything

    Execute the traversal without returning anything

    Definition Classes
    Traversal
    Annotations
    @Doc()
  68. val iterator: Iterator[A]
    Definition Classes
    Traversal → IterableOnce
  69. def knownSize: Int
    Definition Classes
    IterableOnce
  70. def l: List[A]

    Execute the traversal and convert the result to a list - shorthand for toList

    Execute the traversal and convert the result to a list - shorthand for toList

    Definition Classes
    Traversal
    Annotations
    @Doc()
  71. def last: A
    Definition Classes
    IterableOps
  72. def lastOption: Option[A]
    Definition Classes
    IterableOps
  73. def map[B](f: (A) => B): Traversal[B]
    Definition Classes
    PathAwareTraversal → IterableOps → IterableOnceOps
  74. def mapElements[B](f: (A) => B): Traversal[B]

    overriding to ensure that path tracking remains enabled after steps that instantiate new Traversals

    overriding to ensure that path tracking remains enabled after steps that instantiate new Traversals

    Attributes
    protected
    Definition Classes
    PathAwareTraversalTraversal
  75. def max[B >: A](implicit ord: Ordering[B]): A
    Definition Classes
    IterableOnceOps
  76. def maxBy[B](f: (A) => B)(implicit cmp: Ordering[B]): A
    Definition Classes
    IterableOnceOps
  77. def maxByOption[B](f: (A) => B)(implicit cmp: Ordering[B]): Option[A]
    Definition Classes
    IterableOnceOps
  78. def maxOption[B >: A](implicit ord: Ordering[B]): Option[A]
    Definition Classes
    IterableOnceOps
  79. def min[B >: A](implicit ord: Ordering[B]): A
    Definition Classes
    IterableOnceOps
  80. def minBy[B](f: (A) => B)(implicit cmp: Ordering[B]): A
    Definition Classes
    IterableOnceOps
  81. def minByOption[B](f: (A) => B)(implicit cmp: Ordering[B]): Option[A]
    Definition Classes
    IterableOnceOps
  82. def minOption[B >: A](implicit ord: Ordering[B]): Option[A]
    Definition Classes
    IterableOnceOps
  83. final def mkString: String
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  84. final def mkString(sep: String): String
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  85. final def mkString(start: String, sep: String, end: String): String
    Definition Classes
    IterableOnceOps
  86. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  87. def newSpecificBuilder: Builder[A, Traversal[A]]
    Attributes
    protected
    Definition Classes
    IterableFactoryDefaults → IterableOps
  88. def next(): A
    Definition Classes
    Traversal
  89. def nextOption(): Option[A]
    Definition Classes
    Traversal
  90. def nonEmpty: Boolean
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecatedOverriding()
  91. def not(trav: (Traversal[A]) => Traversal[_]): Traversal[A]

    only preserves elements if the provided traversal does _not_ have any results - alias for whereNot

    only preserves elements if the provided traversal does _not_ have any results - alias for whereNot

    Definition Classes
    Traversal
    Annotations
    @Doc()
  92. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  93. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  94. def or(traversals: (Traversal[A]) => Traversal[_]*): Traversal[A]

    only preserves elements for which _at least one of_ the given traversals has at least one result Works for arbitrary amount of 'OR' traversals.

    only preserves elements for which _at least one of_ the given traversals has at least one result Works for arbitrary amount of 'OR' traversals.

    Definition Classes
    Traversal
    Annotations
    @Doc()
    Example:
    1. .or(_.label("someLabel"),
          _.has("someProperty"))
  95. def partition(p: (A) => Boolean): (Traversal[A], Traversal[A])
    Definition Classes
    IterableOps
  96. def partitionMap[A1, A2](f: (A) => Either[A1, A2]): (Traversal[A1], Traversal[A2])
    Definition Classes
    IterableOps
  97. def path: Traversal[Vector[Any]]

    retrieve entire path that has been traversed thus far prerequisite: enablePathTracking has been called previously

    retrieve entire path that has been traversed thus far prerequisite: enablePathTracking has been called previously

    Definition Classes
    PathAwareTraversalTraversal
    Example:
    1. myTraversal.enablePathTracking.out.out.path.toList
  98. def product[B >: A](implicit num: Numeric[B]): B
    Definition Classes
    IterableOnceOps
  99. def reduce[B >: A](op: (B, B) => B): B
    Definition Classes
    IterableOnceOps
  100. def reduceLeft[B >: A](op: (B, A) => B): B
    Definition Classes
    IterableOnceOps
  101. def reduceLeftOption[B >: A](op: (B, A) => B): Option[B]
    Definition Classes
    IterableOnceOps
  102. def reduceOption[B >: A](op: (B, B) => B): Option[B]
    Definition Classes
    IterableOnceOps
  103. def reduceRight[B >: A](op: (A, B) => B): B
    Definition Classes
    IterableOnceOps
  104. def reduceRightOption[B >: A](op: (A, B) => B): Option[B]
    Definition Classes
    IterableOnceOps
  105. def repeat[B >: A](repeatTraversal: (Traversal[A]) => Traversal[B])(implicit behaviourBuilder: (Builder[B]) => Builder[B] = RepeatBehaviour.noop[B]): Traversal[B]

    Repeat the given traversal

    Repeat the given traversal

    By default it will continue repeating until there's no more results, not emit anything along the way, and use depth first search.

    The @param behaviourBuilder allows you to configure end conditions (times/until), whether it should emit elements it passes by, and which search algorithm to use (depth-first or breadth-first).

    Search algorithm: Depth First Search (DFS) vs Breadth First Search (BFS): DFS means the repeat step will go deep before wide. BFS does the opposite: wide before deep. For example, given the graph

    L3 <- L2 <- L1 <- Center -> R1 -> R2 -> R3 -> R4

    DFS will iterate the nodes in the order:

    Center, L1, L2, L3, R1, R2, R3, R4

    BFS will iterate the nodes in the order:

    Center, L1, R1, R1, R2, L3, R3, R4
    Definition Classes
    PathAwareTraversalTraversal
    Example:
    1. .repeat(_.out)                            // repeat until there's no more elements, emit nothing, use DFS
      .repeat(_.out)(_.times(3))                               // perform exactly three repeat iterations
      .repeat(_.out)(_.until(_.property(Name).endsWith("2")))  // repeat until the 'Name' property ends with '2'
      .repeat(_.out)(_.emit)                                   // emit everything along the way
      .repeat(_.out)(_.emit.breadthFirstSearch)                // emit everything, use BFS
      .repeat(_.out)(_.emit(_.property(Name).startsWith("L"))) // emit if the 'Name' property starts with 'L'
    Note

    this works for domain-specific steps as well as generic graph steps - for details please take a look at the examples in RepeatTraversalTests: both .followedBy and .out work.

    See also

    RepeatTraversalTests for more detail and examples for all of the above.

  106. def reversed: Iterable[A]
    Attributes
    protected
    Definition Classes
    IterableOnceOps
  107. def scan[B >: A](z: B)(op: (B, B) => B): Traversal[B]
    Definition Classes
    IterableOps
  108. def scanLeft[B](z: B)(op: (B, A) => B): Traversal[B]
    Definition Classes
    IterableOps → IterableOnceOps
  109. def scanRight[B](z: B)(op: (A, B) => B): Traversal[B]
    Definition Classes
    IterableOps
  110. def sideEffect(fun: (A) => Unit): Traversal[A]

    perform side effect without changing the contents of the traversal

    perform side effect without changing the contents of the traversal

    Definition Classes
    Traversal
    Annotations
    @Doc()
  111. def sideEffectPF(pf: PartialFunction[A, Unit]): Traversal[A]

    perform side effect without changing the contents of the traversal will only apply the partialFunction if it is defined for the given input - analogous to collect

    perform side effect without changing the contents of the traversal will only apply the partialFunction if it is defined for the given input - analogous to collect

    Definition Classes
    Traversal
    Annotations
    @Doc()
  112. def simplePath: Traversal[A]

    Removes all results whose traversal path has repeated objects.

    Removes all results whose traversal path has repeated objects.

    Definition Classes
    PathAwareTraversalTraversal
  113. def size: Int
    Definition Classes
    IterableOnceOps
  114. def sizeCompare(that: Iterable[_]): Int
    Definition Classes
    IterableOps
  115. def sizeCompare(otherSize: Int): Int
    Definition Classes
    IterableOps
  116. final def sizeIs: SizeCompareOps
    Definition Classes
    IterableOps
    Annotations
    @inline()
  117. def slice(from: Int, until: Int): Traversal[A]
    Definition Classes
    IterableOps → IterableOnceOps
  118. def sliding(size: Int, step: Int): Iterator[Traversal[A]]
    Definition Classes
    IterableOps
  119. def sliding(size: Int): Iterator[Traversal[A]]
    Definition Classes
    IterableOps
  120. def sortBy[B](f: (A) => B)(implicit ord: Ordering[B]): Seq[A]

    sort elements by the value of the given transformation function

    sort elements by the value of the given transformation function

    Definition Classes
    Traversal
    Annotations
    @Doc()
  121. def sorted[B >: A](implicit ord: Ordering[B]): Seq[B]

    sort elements by their natural order

    sort elements by their natural order

    Definition Classes
    Traversal
    Annotations
    @Doc()
  122. def span(p: (A) => Boolean): (Traversal[A], Traversal[A])
    Definition Classes
    IterableOps → IterableOnceOps
  123. def splitAt(n: Int): (Traversal[A], Traversal[A])
    Definition Classes
    IterableOps → IterableOnceOps
  124. def stepper[S <: Stepper[_]](implicit shape: StepperShape[A, S]): S
    Definition Classes
    IterableOnce
  125. def sum[B >: A](implicit num: Numeric[B]): B
    Definition Classes
    IterableOnceOps
  126. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  127. def tail: Traversal[A]
    Definition Classes
    IterableOps
  128. def tails: Iterator[Traversal[A]]
    Definition Classes
    IterableOps
  129. def take(n: Int): Traversal[A]
    Definition Classes
    IterableOps → IterableOnceOps
  130. def takeRight(n: Int): Traversal[A]
    Definition Classes
    IterableOps
  131. def takeWhile(p: (A) => Boolean): Traversal[A]
    Definition Classes
    IterableOps → IterableOnceOps
  132. def tapEach[U](f: (A) => U): Traversal[A]
    Definition Classes
    IterableOps → IterableOnceOps
  133. def to[C1](factory: Factory[A, C1]): C1
    Definition Classes
    IterableOnceOps
  134. def toArray[B >: A](implicit arg0: ClassTag[B]): Array[B]
    Definition Classes
    IterableOnceOps
  135. final def toBuffer[B >: A]: Buffer[B]
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  136. def toIndexedSeq: IndexedSeq[A]
    Definition Classes
    IterableOnceOps
  137. def toIterable: Iterable[A]
    Definition Classes
    Traversal → IterableOps
  138. def toList: List[A]
    Definition Classes
    IterableOnceOps
  139. def toMap[K, V](implicit ev: <:<[A, (K, V)]): Map[K, V]
    Definition Classes
    IterableOnceOps
  140. def toSeq: Seq[A]
    Definition Classes
    IterableOnceOps
  141. def toSet[B >: A]: Set[B]
    Definition Classes
    IterableOnceOps
  142. def toSetImmutable[B >: A]: Set[B]

    Execute the traversal and convert the result to an immutable Set

    Execute the traversal and convert the result to an immutable Set

    Definition Classes
    Traversal
  143. def toSetMutable[B >: A]: Set[B]

    Execute the traversal and return a mutable.Set (better performance than immutableSet)

    Execute the traversal and return a mutable.Set (better performance than immutableSet)

    Definition Classes
    Traversal
  144. def toString(): String
    Definition Classes
    Traversal → AnyRef → Any
  145. def toVector: Vector[A]
    Definition Classes
    IterableOnceOps
  146. def transpose[B](implicit asIterable: (A) => Iterable[B]): Traversal[Traversal[B]]
    Definition Classes
    IterableOps
  147. def unzip[A1, A2](implicit asPair: (A) => (A1, A2)): (Traversal[A1], Traversal[A2])
    Definition Classes
    IterableOps
  148. def unzip3[A1, A2, A3](implicit asTriple: (A) => (A1, A2, A3)): (Traversal[A1], Traversal[A2], Traversal[A3])
    Definition Classes
    IterableOps
  149. def view: View[A]
    Definition Classes
    IterableOps
  150. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  151. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  152. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  153. def where(trav: (Traversal[A]) => Traversal[_]): Traversal[A]

    only preserves elements if the provided traversal has at least one result

    only preserves elements if the provided traversal has at least one result

    Definition Classes
    Traversal
    Annotations
    @Doc()
  154. def whereNot(trav: (Traversal[A]) => Traversal[_]): Traversal[A]

    only preserves elements if the provided traversal does _not_ have any results

    only preserves elements if the provided traversal does _not_ have any results

    Definition Classes
    Traversal
    Annotations
    @Doc()
  155. def withFilter(p: (A) => Boolean): WithFilter[A, Traversal]
    Definition Classes
    IterableOps
  156. def within[B >: A](values: Set[B]): Traversal[A]

    filters out all elements that are _not_ in the provided set

    filters out all elements that are _not_ in the provided set

    Definition Classes
    Traversal
    Annotations
    @Doc()
  157. def without[B >: A](values: Set[B]): Traversal[A]

    filters out all elements that _are_ in the provided set

    filters out all elements that _are_ in the provided set

    Definition Classes
    Traversal
    Annotations
    @Doc()
  158. def zip[B](that: IterableOnce[B]): Traversal[(A, B)]
    Definition Classes
    IterableOps
  159. def zipAll[A1 >: A, B](that: Iterable[B], thisElem: A1, thatElem: B): Traversal[(A1, B)]
    Definition Classes
    IterableOps
  160. def zipWithIndex: Traversal[(A, Int)]
    Definition Classes
    IterableOps → IterableOnceOps

Deprecated Value Members

  1. def ++:[B >: A](that: IterableOnce[B]): Traversal[B]
    Definition Classes
    IterableOps
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use ++ instead of ++: for collections of type Iterable

  2. final def /:[B](z: B)(op: (B, A) => B): B
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use foldLeft instead of /:

  3. final def :\[B](z: B)(op: (A, B) => B): B
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use foldRight instead of :\

  4. def aggregate[B](z: => B)(seqop: (B, A) => B, combop: (B, B) => B): B
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) aggregate is not relevant for sequential collections. Use foldLeft(z)(seqop) instead.

  5. def companion: IterableFactory[Traversal]
    Definition Classes
    IterableOps
    Annotations
    @deprecated @deprecatedOverriding() @inline()
    Deprecated

    (Since version 2.13.0) Use iterableFactory instead

  6. final def copyToBuffer[B >: A](dest: Buffer[B]): Unit
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use dest ++= coll instead

  7. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated
  8. def hasDefiniteSize: Boolean
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Check .knownSize instead of .hasDefiniteSize for more actionable information (see scaladoc for details)

  9. final def repr: Traversal[A]
    Definition Classes
    IterableOps
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use coll instead of repr in a collection implementation, use the collection value itself from the outside

  10. final def toIterator: Iterator[A]
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use .iterator instead of .toIterator

  11. final def toStream: Stream[A]
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use .to(LazyList) instead of .toStream

  12. final def toTraversable: Traversable[A]
    Definition Classes
    IterableOps
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) toTraversable is internal and will be made protected; its name is similar to toList or toSeq, but it doesn't copy non-immutable collections

  13. def view(from: Int, until: Int): View[A]
    Definition Classes
    IterableOps
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use .view.slice(from, until) instead of .view(from, until)

Inherited from Traversal[A]

Inherited from IterableFactoryDefaults[A, Traversal]

Inherited from IterableOps[A, Traversal, Traversal[A]]

Inherited from IterableOnceOps[A, Traversal, Traversal[A]]

Inherited from IterableOnce[A]

Inherited from AnyRef

Inherited from Any

Ungrouped