Class/Object

com.codecommit.antixml

Group

Related Docs: object Group | package antixml

Permalink

class Group[+A <: Node] extends IndexedSeq[A] with IndexedSeqLike[A, Group[A]] with Selectable[A]

Represents a collection of arbitrary nodes (com.codecommit.antixml.Node)). Note that this collection need not have a single root parent element. Thus, a valid Group could be as follows:

Group(EntityRef("quot"), Text("Daniel is "), Elem(None, "em", Attributes(), Map(), Group(Text("delusional!"))), EntityRef("quot"))

This would correspond to the following XML fragment (note: not actually well-formed XML, since it is lacking a single root element):

&quot;Daniel is <em>delusional!</em>&quot;

Note that unlike scala.xml, Group is not a special type of com.codecommit.antixml.Node! This design decision has a very profound impact on the framework as a whole. In general, the result is an API which is more consistent and more predictable than it otherwise would have been. However, it also resulted in some unfortunate sacrifices: specifically, full XPath semantics. The exact semantics of the \ and \\ operators are defined in their respective scaladocs.

Group is parameterized based on the type of Node it contains. In the general case (such as the one illustrated above), this will be exactly Node. However, there are some very common cases wherein a Group may have a more specific type than just Node. For example:

val ns: Group[Node] = ...
val results = ns \ "name"

In this example, results will have type Group[Elem]. This is because the selector employed ("name") can only produce results of type Elem. This mechanism forms the basis for the typed selectors mechanism, which is extremely powerful and serves to eliminate a great deal of boiler-plate casting when traversing XML hierarchies.

In the general case, Group is backed by an instance of scala.collection.immutable.Vector. This implementation detail is significant as it implies two things. First, the implementation of Group is truly immutable, meaning that there are no tricky concurrency semantics to worry about. Second, unlike scala.xml (which backs its sequences by either List or ArrayBuffer, depending on phase of the moon), it is possible to perform efficient random-access and updates across the entire Group. Random access is implemented by the apply method, while random "updates" are implemented by the updated method. Fast prepend and append operations are also available.

Beyond this, all standard collection operations are available on Group (e.g. flatMap, exists, collect, slice, etc). The appropriate incantations have been spoken to allow these methods to return the correct type. Thus, if you map over a Group and your function returns something which extends Node, the result will be a Group. If your function returns something which does not extend Node (e.g. Int), then the result will be something else (probably a generic IndexedSeq backed by Vector). Group itself extends scala.collection.immutable.IndexedSeq and thus can be used in situations which require this abstraction.

Source
Group.scala
Linear Supertypes
Selectable[A], IndexedSeq[A], IndexedSeq[A], IndexedSeqLike[A, Group[A]], Seq[A], Seq[A], SeqLike[A, Group[A]], GenSeq[A], GenSeqLike[A, Group[A]], PartialFunction[Int, A], (Int) ⇒ A, Iterable[A], Iterable[A], IterableLike[A, Group[A]], Equals, GenIterable[A], GenIterableLike[A, Group[A]], Traversable[A], Immutable, Traversable[A], GenTraversable[A], GenericTraversableTemplate[A, IndexedSeq], TraversableLike[A, Group[A]], GenTraversableLike[A, Group[A]], Parallelizable[A, ParSeq[A]], TraversableOnce[A], GenTraversableOnce[A], FilterMonadic[A, Group[A]], HasNewBuilder[A, Group[A]], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Group
  2. Selectable
  3. IndexedSeq
  4. IndexedSeq
  5. IndexedSeqLike
  6. Seq
  7. Seq
  8. SeqLike
  9. GenSeq
  10. GenSeqLike
  11. PartialFunction
  12. Function1
  13. Iterable
  14. Iterable
  15. IterableLike
  16. Equals
  17. GenIterable
  18. GenIterableLike
  19. Traversable
  20. Immutable
  21. Traversable
  22. GenTraversable
  23. GenericTraversableTemplate
  24. TraversableLike
  25. GenTraversableLike
  26. Parallelizable
  27. TraversableOnce
  28. GenTraversableOnce
  29. FilterMonadic
  30. HasNewBuilder
  31. AnyRef
  32. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class Elements extends AbstractIterator[A] with BufferedIterator[A] with Serializable

    Permalink
    Attributes
    protected
    Definition Classes
    IndexedSeqLike
    Annotations
    @SerialVersionUID()
  2. type Self = Group[A]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    TraversableLike
  3. class WithFilter extends FilterMonadic[A, Repr]

    Permalink
    Definition Classes
    TraversableLike

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def ++[B >: A <: Node](that: Group[B]): Group[B]

    Permalink

    Efficient (and slightly tricky) overload of ++ on parameters which are specifically of type com.codecommit.antixml.Group[_].

  4. def ++[B >: A, That](that: GenTraversableOnce[B])(implicit bf: CanBuildFrom[Group[A], B, That]): That

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

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

    Permalink
    Definition Classes
    TraversableLike
  7. def +:[B >: A <: Node](node: B): Group[B]

    Permalink

    Efficient (and slightly tricky) overload of +: on parameters which are specifically of type com.codecommit.antixml.Node.

  8. def +:[B >: A, That](elem: B)(implicit bf: CanBuildFrom[Group[A], B, That]): That

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  9. def /:[B](z: B)(op: (B, A) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  10. def :+[B >: A <: Node](node: B): Group[B]

    Permalink

    Efficient (and slightly tricky) overload of :+ on parameters which are specifically of type com.codecommit.antixml.Node.

  11. def :+[B >: A, That](elem: B)(implicit bf: CanBuildFrom[Group[A], B, That]): That

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  12. def :\[B](z: B)(op: (A, B) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  13. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. def \(selector: Selector[Node]): Zipper[Node]

    Permalink

    [use case]

    [use case]
    Definition Classes
    Selectable
    Full Signature

    def \[B, That](selector: Selector[B])(implicit cbfwz: CanBuildFromWithZipper[Group[A], B, That]): That

  15. def \\(selector: Selector[Node]): Zipper[Node]

    Permalink

    [use case]

    [use case]
    Definition Classes
    Selectable
    Full Signature

    def \\[B, That](selector: Selector[B])(implicit cbfwz: CanBuildFromWithZipper[Group[A], B, That]): That

  16. def \\!(selector: Selector[Node]): Zipper[Node]

    Permalink

    [use case]

    [use case]
    Definition Classes
    Selectable
    Full Signature

    def \\![B, That](selector: Selector[B])(implicit cbfwz: CanBuildFromWithZipper[Group[A], B, That]): That

  17. def addString(b: StringBuilder): StringBuilder

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

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

    Permalink
    Definition Classes
    TraversableOnce
  20. def aggregate[B](z: ⇒ B)(seqop: (B, A) ⇒ B, combop: (B, B) ⇒ B): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  21. def andThen[C](k: (A) ⇒ C): PartialFunction[Int, C]

    Permalink
    Definition Classes
    PartialFunction → Function1
  22. def apply(i: Int): A

    Permalink
    Definition Classes
    Group → SeqLike → GenSeqLike → Function1
  23. def applyOrElse[A1 <: Int, B1 >: A](x: A1, default: (A1) ⇒ B1): B1

    Permalink
    Definition Classes
    PartialFunction
  24. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  25. def canEqual(that: Any): Boolean

    Permalink
    Definition Classes
    IterableLike → Equals
  26. def canonicalize: Group[A]

    Permalink

    Merges adjacent com.codecommit.antixml.Text as well as adjacent com.codecommit.antixml.CDATA nodes to produce a Group which represents an identical XML fragment but with a minimized structure.

    Merges adjacent com.codecommit.antixml.Text as well as adjacent com.codecommit.antixml.CDATA nodes to produce a Group which represents an identical XML fragment but with a minimized structure. Slightly more formally, for any XML fragment with n characters of textual data, there are 2n possible ways of representing that fragment as a Group. All of these representations are semantically distinct (i.e. structurally different in memory) but logically equivalent in that they will all generate the same XML fragment if serialized. Of these 2n distinct representations, there will be exactly one representation which is minimal, in that the smallest possible number of com.codecommit.antixml.Text and com.codecommit.antixml.CDATA nodes are used to represent the textual data. This form may be considered "canonical". This method converts an arbitrary Group into its canonical form, a logically equivalent Group which represents the same XML fragment in its structurally minimized form.

    This method is perhaps best explained by an example:

    val xml = Group(Text("Daniel "), Text("Spiewak"))
    xml.canonicalize    // => Group(Text("Daniel Spiewak"))

    The Group resulting from the canonicalize invocation will produce exactly the same result as would xml were we to invoke the toString method on each of them. However, the canonicalized result has only one text node for the entire character block, while xml (the original Group) has two.

    This is actually a very common gotcha in scala.xml. The issue comes up most frequently in the area of equality. As you can see in the example above, xml clearly will not be equivalent (according to the equals method) to xml.canonicalize. However, it is very natural to assume that these two structures are in fact equal due to their logical equivalence in that they represent the same textual XML fragment. Oftentimes, people will get around this issue in scala.xml by converting all NodeSeq(s) into strings prior to comparison. In Anti-XML, all that is necessary to handle potential semantic divergence in cases of logical equality is to simply invoke the canonicalize method on each of the two equality operands.

  27. def clone(): AnyRef

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

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

    Permalink
    Definition Classes
    TraversableOnce
  30. def combinations(n: Int): Iterator[Group[A]]

    Permalink
    Definition Classes
    SeqLike
  31. def companion: GenericCompanion[IndexedSeq]

    Permalink
    Definition Classes
    IndexedSeq → IndexedSeq → Seq → Seq → GenSeq → Iterable → Iterable → GenIterable → Traversable → Traversable → GenTraversable → GenericTraversableTemplate
  32. def compose[A](g: (A) ⇒ Int): (A) ⇒ A

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  33. def contains[A1 >: A](elem: A1): Boolean

    Permalink
    Definition Classes
    SeqLike
  34. def containsSlice[B](that: GenSeq[B]): Boolean

    Permalink
    Definition Classes
    SeqLike
  35. def copyToArray[B >: A](xs: Array[B], start: Int, len: Int): Unit

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

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

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

    Permalink
    Definition Classes
    TraversableOnce
  39. def corresponds[B](that: GenSeq[B])(p: (A, B) ⇒ Boolean): Boolean

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  40. def count(p: (A) ⇒ Boolean): Int

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  41. def diff[B >: A](that: GenSeq[B]): Group[A]

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  42. def distinct: Group[A]

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  43. def drop(n: Int): Group[A]

    Permalink
    Definition Classes
    Group → IterableLike → TraversableLike → GenTraversableLike
  44. def dropRight(n: Int): Group[A]

    Permalink
    Definition Classes
    Group → IterableLike
  45. def dropWhile(p: (A) ⇒ Boolean): Group[A]

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  46. def endsWith[B](that: GenSeq[B]): Boolean

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  47. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  48. def equals(that: Any): Boolean

    Permalink
    Definition Classes
    GenSeqLike → Equals → Any
  49. def exists(p: (A) ⇒ Boolean): Boolean

    Permalink
    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  50. def filter(p: (A) ⇒ Boolean): Group[A]

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  51. def filterNot(p: (A) ⇒ Boolean): Group[A]

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

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

    Permalink
    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  54. def flatMap[B, That](f: (A) ⇒ GenTraversableOnce[B])(implicit bf: CanBuildFrom[Group[A], B, That]): That

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  55. def flatten[B](implicit asTraversable: (A) ⇒ GenTraversableOnce[B]): IndexedSeq[B]

    Permalink
    Definition Classes
    GenericTraversableTemplate
  56. def fold[A1 >: A](z: A1)(op: (A1, A1) ⇒ A1): A1

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

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

    Permalink
    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  59. def forall(p: (A) ⇒ Boolean): Boolean

    Permalink
    Definition Classes
    IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  60. def foreach[U](f: (A) ⇒ U): Unit

    Permalink
    Definition Classes
    Group → IterableLike → GenericTraversableTemplate → TraversableLike → GenTraversableLike → TraversableOnce → GenTraversableOnce → FilterMonadic
  61. def genericBuilder[B]: Builder[B, IndexedSeq[B]]

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

    Permalink
    Definition Classes
    AnyRef → Any
  63. def groupBy[K](f: (A) ⇒ K): Map[K, Group[A]]

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  64. def grouped(size: Int): Iterator[Group[A]]

    Permalink
    Definition Classes
    IterableLike
  65. def hasDefiniteSize: Boolean

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

    Permalink
    Definition Classes
    IndexedSeqLike → GenSeqLike → Any
  67. def head: A

    Permalink
    Definition Classes
    Group → IterableLike → GenericTraversableTemplate → TraversableLike → GenTraversableLike
  68. def headOption: Option[A]

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  69. def indexOf[B >: A](elem: B, from: Int): Int

    Permalink
    Definition Classes
    GenSeqLike
  70. def indexOf[B >: A](elem: B): Int

    Permalink
    Definition Classes
    GenSeqLike
  71. def indexOfSlice[B >: A](that: GenSeq[B], from: Int): Int

    Permalink
    Definition Classes
    SeqLike
  72. def indexOfSlice[B >: A](that: GenSeq[B]): Int

    Permalink
    Definition Classes
    SeqLike
  73. def indexWhere(p: (A) ⇒ Boolean, from: Int): Int

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  74. def indexWhere(p: (A) ⇒ Boolean): Int

    Permalink
    Definition Classes
    GenSeqLike
  75. def indices: Range

    Permalink
    Definition Classes
    SeqLike
  76. def init: Group[A]

    Permalink
    Definition Classes
    Group → TraversableLike → GenTraversableLike
  77. def inits: Iterator[Group[A]]

    Permalink
    Definition Classes
    TraversableLike
  78. def intersect[B >: A](that: GenSeq[B]): Group[A]

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  79. def isDefinedAt(idx: Int): Boolean

    Permalink
    Definition Classes
    GenSeqLike
  80. def isEmpty: Boolean

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

    Permalink
    Definition Classes
    Any
  82. final def isTraversableAgain: Boolean

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike → GenTraversableOnce
  83. def iterator: Iterator[A]

    Permalink
    Definition Classes
    Group → IndexedSeqLike → IterableLike → GenIterableLike
  84. def last: A

    Permalink
    Definition Classes
    Group → TraversableLike → GenTraversableLike
  85. def lastIndexOf[B >: A](elem: B, end: Int): Int

    Permalink
    Definition Classes
    GenSeqLike
  86. def lastIndexOf[B >: A](elem: B): Int

    Permalink
    Definition Classes
    GenSeqLike
  87. def lastIndexOfSlice[B >: A](that: GenSeq[B], end: Int): Int

    Permalink
    Definition Classes
    SeqLike
  88. def lastIndexOfSlice[B >: A](that: GenSeq[B]): Int

    Permalink
    Definition Classes
    SeqLike
  89. def lastIndexWhere(p: (A) ⇒ Boolean, end: Int): Int

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  90. def lastIndexWhere(p: (A) ⇒ Boolean): Int

    Permalink
    Definition Classes
    GenSeqLike
  91. def lastOption: Option[A]

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  92. def length: Int

    Permalink
    Definition Classes
    Group → SeqLike → GenSeqLike
  93. def lengthCompare(len: Int): Int

    Permalink
    Definition Classes
    Group → SeqLike
  94. def lift: (Int) ⇒ Option[A]

    Permalink
    Definition Classes
    PartialFunction
  95. def map[B, That](f: (A) ⇒ B)(implicit bf: CanBuildFrom[Group[A], B, That]): That

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike → FilterMonadic
  96. def matches(name: String): Boolean

    Permalink

    If true this group may contain an element with the given name as one of its children (recursively).

  97. def max[B >: A](implicit cmp: Ordering[B]): A

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

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

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

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  101. def mkString: String

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

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

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

    Permalink
    Definition Classes
    AnyRef
  105. def newBuilder: Builder[A, Group[A]]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Group → GenericTraversableTemplate → TraversableLike → HasNewBuilder
  106. def nonEmpty: Boolean

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

    Permalink
    Definition Classes
    AnyRef
  108. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  109. def orElse[A1 <: Int, B1 >: A](that: PartialFunction[A1, B1]): PartialFunction[A1, B1]

    Permalink
    Definition Classes
    PartialFunction
  110. def padTo[B >: A, That](len: Int, elem: B)(implicit bf: CanBuildFrom[Group[A], B, That]): That

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  111. def par: ParSeq[A]

    Permalink
    Definition Classes
    Parallelizable
  112. def parCombiner: Combiner[A, ParSeq[A]]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    Seq → SeqLike → Iterable → TraversableLike → Parallelizable
  113. def partition(p: (A) ⇒ Boolean): (Group[A], Group[A])

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  114. def patch[B >: A, That](from: Int, patch: GenSeq[B], replaced: Int)(implicit bf: CanBuildFrom[Group[A], B, That]): That

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  115. def permutations: Iterator[Group[A]]

    Permalink
    Definition Classes
    SeqLike
  116. def prefixLength(p: (A) ⇒ Boolean): Int

    Permalink
    Definition Classes
    GenSeqLike
  117. def product[B >: A](implicit num: Numeric[B]): B

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  118. def reduce[A1 >: A](op: (A1, A1) ⇒ A1): A1

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

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

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  121. def reduceOption[A1 >: A](op: (A1, A1) ⇒ A1): Option[A1]

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

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

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  124. def repr: Group[A]

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  125. def reverse: Group[A]

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  126. def reverseIterator: Iterator[A]

    Permalink
    Definition Classes
    Group → SeqLike
  127. def reverseMap[B, That](f: (A) ⇒ B)(implicit bf: CanBuildFrom[Group[A], B, That]): That

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  128. def reversed: List[A]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    TraversableOnce
  129. def runWith[U](action: (A) ⇒ U): (Int) ⇒ Boolean

    Permalink
    Definition Classes
    PartialFunction
  130. def sameElements[B >: A](that: GenIterable[B]): Boolean

    Permalink
    Definition Classes
    IterableLike → GenIterableLike
  131. def scan[B >: A, That](z: B)(op: (B, B) ⇒ B)(implicit cbf: CanBuildFrom[Group[A], B, That]): That

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  132. def scanLeft[B, That](z: B)(op: (B, A) ⇒ B)(implicit bf: CanBuildFrom[Group[A], B, That]): That

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  133. def scanRight[B, That](z: B)(op: (A, B) ⇒ B)(implicit bf: CanBuildFrom[Group[A], B, That]): That

    Permalink
    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.

  134. def segmentLength(p: (A) ⇒ Boolean, from: Int): Int

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  135. def select(selector: Selector[Node]): Zipper[Node]

    Permalink

    [use case]

    [use case]
    Definition Classes
    Selectable
    Full Signature

    def select[B, That](selector: Selector[B])(implicit cbfwz: CanBuildFromWithZipper[Group[A], B, That]): That

  136. def seq: IndexedSeq[A]

    Permalink
    Definition Classes
    IndexedSeq → IndexedSeq → IndexedSeqLike → Seq → Seq → GenSeq → GenSeqLike → Iterable → Iterable → GenIterable → Traversable → Traversable → GenTraversable → Parallelizable → TraversableOnce → GenTraversableOnce
  137. def size: Int

    Permalink
    Definition Classes
    SeqLike → GenTraversableLike → TraversableOnce → GenTraversableOnce
  138. def slice(from: Int, until: Int): Group[A]

    Permalink
    Definition Classes
    Group → IterableLike → TraversableLike → GenTraversableLike
  139. def sliding(size: Int, step: Int): Iterator[Group[A]]

    Permalink
    Definition Classes
    IterableLike
  140. def sliding(size: Int): Iterator[Group[A]]

    Permalink
    Definition Classes
    IterableLike
  141. def sortBy[B](f: (A) ⇒ B)(implicit ord: Ordering[B]): Group[A]

    Permalink
    Definition Classes
    SeqLike
  142. def sortWith(lt: (A, A) ⇒ Boolean): Group[A]

    Permalink
    Definition Classes
    SeqLike
  143. def sorted[B >: A](implicit ord: Ordering[B]): Group[A]

    Permalink
    Definition Classes
    SeqLike
  144. def span(p: (A) ⇒ Boolean): (Group[A], Group[A])

    Permalink
    Definition Classes
    TraversableLike → GenTraversableLike
  145. def splitAt(n: Int): (Group[A], Group[A])

    Permalink
    Definition Classes
    Group → TraversableLike → GenTraversableLike
  146. def startsWith[B](that: GenSeq[B], offset: Int): Boolean

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  147. def startsWith[B](that: GenSeq[B]): Boolean

    Permalink
    Definition Classes
    GenSeqLike
  148. def stringPrefix: String

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

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

    Permalink
    Definition Classes
    AnyRef
  151. def tail: Group[A]

    Permalink
    Definition Classes
    Group → TraversableLike → GenTraversableLike
  152. def tails: Iterator[Group[A]]

    Permalink
    Definition Classes
    TraversableLike
  153. def take(n: Int): Group[A]

    Permalink
    Definition Classes
    Group → IterableLike → TraversableLike → GenTraversableLike
  154. def takeRight(n: Int): Group[A]

    Permalink
    Definition Classes
    Group → IterableLike
  155. def takeWhile(p: (A) ⇒ Boolean): Group[A]

    Permalink
    Definition Classes
    IterableLike → TraversableLike → GenTraversableLike
  156. def thisCollection: IndexedSeq[A]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    IndexedSeqLike → SeqLike → IterableLike → TraversableLike
  157. def to[Col[_]](implicit cbf: CanBuildFrom[Nothing, A, Col[A]]): Col[A]

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

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  159. def toBuffer[A1 >: A]: Buffer[A1]

    Permalink
    Definition Classes
    IndexedSeqLike → TraversableOnce → GenTraversableOnce
  160. def toCollection(repr: Group[A]): IndexedSeq[A]

    Permalink
    Attributes
    protected[this]
    Definition Classes
    IndexedSeqLike → SeqLike → IterableLike → TraversableLike
  161. def toGroup: Group[A]

    Permalink
    Definition Classes
    GroupSelectable
  162. def toIndexedSeq: IndexedSeq[A]

    Permalink
    Definition Classes
    IndexedSeq → TraversableOnce → GenTraversableOnce
    Annotations
    @deprecatedOverriding( ... , "2.11.0" )
  163. def toIterable: Iterable[A]

    Permalink
    Definition Classes
    IterableLike → TraversableOnce → GenTraversableOnce
  164. def toIterator: Iterator[A]

    Permalink
    Definition Classes
    IterableLike → TraversableLike → GenTraversableOnce
    Annotations
    @deprecatedOverriding( ... , "2.11.0" )
  165. def toList: List[A]

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

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  167. def toSeq: Seq[A]

    Permalink
    Definition Classes
    Seq → SeqLike → GenSeqLike → TraversableOnce → GenTraversableOnce
  168. def toSet[B >: A]: Set[B]

    Permalink
    Definition Classes
    TraversableOnce → GenTraversableOnce
  169. def toStream: Stream[A]

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

    Permalink

    Serializes the nodes in this Group into their most compact XML representation and concatenates the result.

    Serializes the nodes in this Group into their most compact XML representation and concatenates the result. Note that the result of this method may not be well-formed XML, since well-formed XML is required to have only a single parent element (whereas a Group may contain multiple nodes at its top level).

    This is not a pretty-print. The resulting XML will not be formatted in any way. It will be precisely the XML fragment represented by this Group, no more and no less.

    returns

    The XML fragment represented by this Group in String form

    Definition Classes
    Group → SeqLike → Function1 → TraversableLike → AnyRef → Any
  171. def toTraversable: Traversable[A]

    Permalink
    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
    Annotations
    @deprecatedOverriding( ... , "2.11.0" )
  172. def toVector: Vector[A]

    Permalink

    Produces a scala.collection.immutable.Vector which contains all of the nodes in this Group.

    Produces a scala.collection.immutable.Vector which contains all of the nodes in this Group. This function is guaranteed to run in constant time.

    Definition Classes
    Group → TraversableOnce → GenTraversableOnce
  173. def toZipper: Zipper[A]

    Permalink
    Definition Classes
    GroupSelectable
  174. def transpose[B](implicit asTraversable: (A) ⇒ GenTraversableOnce[B]): IndexedSeq[IndexedSeq[B]]

    Permalink
    Definition Classes
    GenericTraversableTemplate
    Annotations
    @migration
    Migration

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

  175. def union[B >: A, That](that: GenSeq[B])(implicit bf: CanBuildFrom[Group[A], B, That]): That

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  176. def unzip[A1, A2](implicit asPair: (A) ⇒ (A1, A2)): (IndexedSeq[A1], IndexedSeq[A2])

    Permalink
    Definition Classes
    GenericTraversableTemplate
  177. def unzip3[A1, A2, A3](implicit asTriple: (A) ⇒ (A1, A2, A3)): (IndexedSeq[A1], IndexedSeq[A2], IndexedSeq[A3])

    Permalink
    Definition Classes
    GenericTraversableTemplate
  178. def updated[B >: A <: Node](index: Int, node: B): Group[B]

    Permalink

    Efficient (and slightly tricky) overload of updated on parameters which are specifically of type com.codecommit.antixml.Node.

  179. def updated[B >: A, That](index: Int, elem: B)(implicit bf: CanBuildFrom[Group[A], B, That]): That

    Permalink
    Definition Classes
    SeqLike → GenSeqLike
  180. def view(from: Int, until: Int): SeqView[A, Group[A]]

    Permalink
    Definition Classes
    SeqLike → IterableLike → TraversableLike
  181. def view: SeqView[A, Group[A]]

    Permalink
    Definition Classes
    SeqLike → IterableLike → TraversableLike
  182. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  185. def withFilter(p: (A) ⇒ Boolean): FilterMonadic[A, Group[A]]

    Permalink
    Definition Classes
    TraversableLike → FilterMonadic
  186. def zip[A1 >: A, B, That](that: GenIterable[B])(implicit bf: CanBuildFrom[Group[A], (A1, B), That]): That

    Permalink
    Definition Classes
    IterableLike → GenIterableLike
  187. def zipAll[B, A1 >: A, That](that: GenIterable[B], thisElem: A1, thatElem: B)(implicit bf: CanBuildFrom[Group[A], (A1, B), That]): That

    Permalink
    Definition Classes
    IterableLike → GenIterableLike
  188. def zipWithIndex[A1 >: A, That](implicit bf: CanBuildFrom[Group[A], (A1, Int), That]): That

    Permalink
    Definition Classes
    IterableLike → GenIterableLike

Inherited from Selectable[A]

Inherited from IndexedSeq[A]

Inherited from IndexedSeq[A]

Inherited from IndexedSeqLike[A, Group[A]]

Inherited from Seq[A]

Inherited from Seq[A]

Inherited from SeqLike[A, Group[A]]

Inherited from GenSeq[A]

Inherited from GenSeqLike[A, Group[A]]

Inherited from PartialFunction[Int, A]

Inherited from (Int) ⇒ A

Inherited from Iterable[A]

Inherited from Iterable[A]

Inherited from IterableLike[A, Group[A]]

Inherited from Equals

Inherited from GenIterable[A]

Inherited from GenIterableLike[A, Group[A]]

Inherited from Traversable[A]

Inherited from Immutable

Inherited from Traversable[A]

Inherited from GenTraversable[A]

Inherited from GenericTraversableTemplate[A, IndexedSeq]

Inherited from TraversableLike[A, Group[A]]

Inherited from GenTraversableLike[A, Group[A]]

Inherited from Parallelizable[A, ParSeq[A]]

Inherited from TraversableOnce[A]

Inherited from GenTraversableOnce[A]

Inherited from FilterMonadic[A, Group[A]]

Inherited from HasNewBuilder[A, Group[A]]

Inherited from AnyRef

Inherited from Any

Ungrouped