scala.collection.JavaConversions

JIterableWrapper

class JIterableWrapper[A](underlying: Iterable[A]) extends Iterable[A] with Product

go to: companion
source: JavaConversions.scala
Inherited
  1. Hide All
  2. Show all
  1. Product
  2. Iterable
  3. IterableLike
  4. Equals
  5. Traversable
  6. GenericTraversableTemplate
  7. TraversableLike
  8. TraversableOnce
  9. FilterMonadic
  10. HasNewBuilder
  11. AnyRef
  12. Any
Visibility
  1. Public
  2. All

Instance constructors

  1. new JIterableWrapper(underlying: Iterable[A])

Type Members

  1. type Self = Iterable[A]

    The type implementing this traversable

  2. class WithFilter extends FilterMonadic[A, Repr]

    A class supporting filtered operations.

Value Members

  1. def !=(arg0: AnyRef): Boolean

  2. def !=(arg0: Any): Boolean

    o != arg0 is the same as !(o == (arg0)).

  3. def ##(): Int

  4. def $asInstanceOf[T0](): T0

  5. def $isInstanceOf[T0](): Boolean

  6. def ++(that: TraversableOnce[A]): Iterable[A]

    [use case] Concatenates this iterable collection with the elements of a traversable collection.

  7. def ++[B >: A, That](that: TraversableOnce[B])(implicit bf: CanBuildFrom[Iterable[A], B, That]): That

    Concatenates this iterable collection with the elements of a traversable collection.

  8. def /:[B](z: B)(op: (B, A) ⇒ B): B

    Applies a binary operator to a start value and all elements of this iterable collection, going left to right.

  9. def :\[B](z: B)(op: (A, B) ⇒ B): B

    Applies a binary operator to all elements of this iterable collection and a start value, going right to left.

  10. def ==(arg0: AnyRef): Boolean

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

  11. def ==(arg0: Any): Boolean

    o == arg0 is the same as o.equals(arg0).

  12. def addString(b: StringBuilder): StringBuilder

    Appends all elements of this iterable collection to a string builder.

  13. def addString(b: StringBuilder, sep: String): StringBuilder

    Appends all elements of this iterable collection to a string builder using a separator string.

  14. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder

    Appends all elements of this iterable collection to a string builder using start, end, and separator strings.

  15. def asInstanceOf[T0]: T0

    This method is used to cast the receiver object to be of type T0.

  16. def canEqual(that: Any): Boolean

    Method called from equality methods, so that user-defined subclasses can refuse to be equal to other collections of the same kind.

  17. def clone(): AnyRef

    This method creates and returns a copy of the receiver object.

  18. def collect[B](pf: PartialFunction[A, B]): Iterable[B]

    [use case] Builds a new collection by applying a partial function to all elements of this iterable collection on which the function is defined.

  19. def collect[B, That](pf: PartialFunction[A, B])(implicit bf: CanBuildFrom[Iterable[A], B, That]): That

    Builds a new collection by applying a partial function to all elements of this iterable collection on which the function is defined.

  20. def companion: GenericCompanion[Iterable[A][A]]

    The factory companion object that builds instances of class Iterable.

  21. def copyToArray(xs: Array[A], start: Int, len: Int): Unit

    [use case] Copies elements of this iterable collection to an array.

  22. def copyToArray[B >: A](xs: Array[B], start: Int, len: Int): Unit

    Copies elements of this iterable collection to an array.

  23. def copyToArray(xs: Array[A]): Unit

    [use case] Copies values of this iterable collection to an array.

  24. def copyToArray[B >: A](xs: Array[B]): Unit

    Copies values of this iterable collection to an array.

  25. def copyToArray(xs: Array[A], start: Int): Unit

    [use case] Copies values of this iterable collection to an array.

  26. def copyToArray[B >: A](xs: Array[B], start: Int): Unit

    Copies values of this iterable collection to an array.

  27. def copyToBuffer[B >: A](dest: Buffer[B]): Unit

    Copies all elements of this iterable collection to a buffer.

  28. def count(p: (A) ⇒ Boolean): Int

    Counts the number of elements in the iterable collection which satisfy a predicate.

  29. def drop(n: Int): Iterable[A]

    Selects all elements except first n ones.

  30. def dropRight(n: Int): Iterable[A]

    Selects all elements except last n ones.

  31. def dropWhile(p: (A) ⇒ Boolean): Iterable[A]

    Drops longest prefix of elements that satisfy a predicate.

  32. def elements: Iterator[A]

  33. def eq(arg0: AnyRef): Boolean

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

  34. def equals(arg0: Any): Boolean

    The equality method defined in AnyRef.

  35. def exists(p: (A) ⇒ Boolean): Boolean

    Tests whether a predicate holds for some of the elements of this iterable collection.

  36. def filter(p: (A) ⇒ Boolean): Iterable[A]

    Selects all elements of this iterable collection which satisfy a predicate.

  37. def filterNot(p: (A) ⇒ Boolean): Iterable[A]

    Selects all elements of this iterable collection which do not satisfy a predicate.

  38. def finalize(): Unit

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

  39. def find(p: (A) ⇒ Boolean): Option[A]

    Finds the first element of the iterable collection satisfying a predicate, if any.

  40. def first: A

  41. def firstOption: Option[A]

    None if iterable is empty.

  42. def flatMap[B](f: (A) ⇒ Traversable[B]): Iterable[B]

    [use case] Builds a new collection by applying a function to all elements of this iterable collection and concatenating the results.

  43. def flatMap[B, That](f: (A) ⇒ Traversable[B])(implicit bf: CanBuildFrom[Iterable[A], B, That]): That

    Builds a new collection by applying a function to all elements of this iterable collection and concatenating the results.

  44. def flatten[B]: Iterable[B]

    [use case] Converts this iterable collection of traversable collections into a iterable collection in which all element collections are concatenated.

  45. def flatten[B](implicit asTraversable: (A) ⇒ Traversable[B]): Iterable[B]

    Converts this iterable collection of traversable collections into a iterable collection in which all element collections are concatenated.

  46. def foldLeft[B](z: B)(op: (B, A) ⇒ B): B

    Applies a binary operator to a start value and all elements of this iterable collection, going left to right.

  47. def foldRight[B](z: B)(op: (A, B) ⇒ B): B

    Applies a binary operator to all elements of this iterable collection and a start value, going right to left.

  48. def forall(p: (A) ⇒ Boolean): Boolean

    Tests whether a predicate holds for all elements of this iterable collection.

  49. def foreach(f: (A) ⇒ Unit): Unit

    [use case] Applies a function f to all elements of this iterable collection.

  50. def foreach[U](f: (A) ⇒ U): Unit

    Applies a function f to all elements of this iterable collection.

  51. def genericBuilder[B]: Builder[B, Iterable[B]]

    The generic builder that builds instances of Iterable at arbitrary element types.

  52. def getClass(): java.lang.Class[_ <: java.lang.Object]

    Returns a representation that corresponds to the dynamic class of the receiver object.

  53. def groupBy[K](f: (A) ⇒ K): Map[K, Iterable[A]]

    Partitions this iterable collection into a map of iterable collections according to some discriminator function.

  54. def grouped(size: Int): Iterator[Iterable[A]]

    Partitions elements in fixed size iterable collections.

  55. def hasDefiniteSize: Boolean

    Tests whether this iterable collection is known to have a finite size.

  56. def hashCode(): Int

    Returns a hash code value for the object.

  57. def head: A

    Selects the first element of this iterable collection.

  58. def headOption: Option[A]

    Optionally selects the first element.

  59. def init: Iterable[A]

    Selects all elements except the last.

  60. def isEmpty: Boolean

    Tests whether this iterable collection is empty.

  61. def isInstanceOf[T0]: Boolean

    This method is used to test whether the dynamic type of the receiver object is T0.

  62. def isTraversableAgain: Boolean

    Tests whether this iterable collection can be repeatedly traversed.

  63. def iterator: Iterator[A]

    Creates a new iterator over all elements contained in this iterable object.

  64. def last: A

    Selects the last element.

  65. def lastOption: Option[A]

    Optionally selects the last element.

  66. def map[B](f: (A) ⇒ B): Iterable[B]

    [use case] Builds a new collection by applying a function to all elements of this iterable collection.

  67. def map[B, That](f: (A) ⇒ B)(implicit bf: CanBuildFrom[Iterable[A], B, That]): That

    Builds a new collection by applying a function to all elements of this iterable collection.

  68. def max: A

    [use case] Finds the largest element.

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

    Finds the largest element.

  70. def min: A

    [use case] Finds the smallest element.

  71. def min[B >: A](implicit cmp: Ordering[B]): A

    Finds the smallest element.

  72. def mkString: String

    Displays all elements of this iterable collection in a string.

  73. def mkString(sep: String): String

    Displays all elements of this iterable collection in a string using a separator string.

  74. def mkString(start: String, sep: String, end: String): String

    Displays all elements of this iterable collection in a string using start, end, and separator strings.

  75. def ne(arg0: AnyRef): Boolean

    o.ne(arg0) is the same as !(o.eq(arg0)).

  76. def newBuilder[B]: ArrayBuffer[B]

  77. def newBuilder: Builder[A, Iterable[A]]

    The builder that builds instances of type Iterable[A]

  78. def nonEmpty: Boolean

    Tests whether the iterable collection is not empty.

  79. def notify(): Unit

    Wakes up a single thread that is waiting on the receiver object's monitor.

  80. def notifyAll(): Unit

    Wakes up all threads that are waiting on the receiver object's monitor.

  81. def partition(p: (A) ⇒ Boolean): (Iterable[A], Iterable[A])

    Partitions this iterable collection in two iterable collections according to a predicate.

  82. def product: Int

    [use case] Multiplies up the elements of this collection.

  83. def product[B >: A](implicit num: Numeric[B]): B

    Multiplies up the elements of this collection.

  84. def productArity: Int

    return k for a product A(x_1,.

  85. def productElement(arg0: Int): Any

    For a product A(x_1,.

  86. def productElements: Iterator[Any]

  87. def productIterator: Iterator[Any]

    An iterator that returns all fields of this product

  88. def productPrefix: String

    By default the empty string.

  89. def projection: IterableView[A, Iterable[A]]

    returns a projection that can be used to call non-strict filter,map, and flatMap methods that build projections of the collection.

  90. def reduceLeft[B >: A](op: (B, A) ⇒ B): B

    Applies a binary operator to all elements of this iterable collection, going left to right.

  91. def reduceLeftOption[B >: A](op: (B, A) ⇒ B): Option[B]

    Optionally applies a binary operator to all elements of this iterable collection, going left to right.

  92. def reduceRight[B >: A](op: (A, B) ⇒ B): B

    Applies a binary operator to all elements of this iterable collection, going right to left.

  93. def reduceRightOption[B >: A](op: (A, B) ⇒ B): Option[B]

    Optionally applies a binary operator to all elements of this iterable collection, going right to left.

  94. def repr: Iterable[A]

    The collection of type iterable collection underlying this TraversableLike object.

  95. def reversed: List[A]

  96. def sameElements(that: Iterable[A]): Boolean

    [use case] Checks if the other iterable collection contains the same elements in the same order as this iterable collection.

  97. def sameElements[B >: A](that: Iterable[B]): Boolean

    Checks if the other iterable collection contains the same elements in the same order as this iterable collection.

  98. def scanLeft[B, That](z: B)(op: (B, A) ⇒ B)(implicit bf: CanBuildFrom[Iterable[A], B, That]): That

    Produces a collection containing cummulative results of applying the operator going left to right.

  99. def scanRight[B, That](z: B)(op: (A, B) ⇒ B)(implicit bf: CanBuildFrom[Iterable[A], B, That]): That

    Produces a collection containing cummulative results of applying the operator going right to left.

  100. def size: Int

    The size of this iterable collection.

  101. def slice(from: Int, until: Int): Iterable[A]

    Selects an interval of elements.

  102. def sliding[B >: A](size: Int, step: Int): Iterator[Iterable[A]]

  103. def sliding[B >: A](size: Int): Iterator[Iterable[A]]

    Groups elements in fixed size blocks by passing a "sliding window" over them (as opposed to partitioning them, as is done in grouped.

  104. def span(p: (A) ⇒ Boolean): (Iterable[A], Iterable[A])

    Splits this iterable collection into a prefix/suffix pair according to a predicate.

  105. def splitAt(n: Int): (Iterable[A], Iterable[A])

    Splits this iterable collection into two at a given position.

  106. def stringPrefix: String

    Defines the prefix of this object's toString representation.

  107. def sum: Int

    [use case] Sums up the elements of this collection.

  108. def sum[B >: A](implicit num: Numeric[B]): B

    Sums up the elements of this collection.

  109. def synchronized[T0](arg0: T0): T0

  110. def tail: Iterable[A]

    Selects all elements except the first.

  111. def take(n: Int): Iterable[A]

    Selects first n elements.

  112. def takeRight(n: Int): Iterable[A]

    Selects last n elements.

  113. def takeWhile(p: (A) ⇒ Boolean): Iterable[A]

    Takes longest prefix of elements that satisfy a predicate.

  114. def thisCollection: Iterable[A]

    The underlying collection seen as an instance of Iterable.

  115. def toArray: Array[A]

    [use case] Converts this iterable collection to an array.

  116. def toArray[B >: A](implicit arg0: ClassManifest[B]): Array[B]

    Converts this iterable collection to an array.

  117. def toBuffer[B >: A]: Buffer[B]

    Converts this iterable collection to a mutable buffer.

  118. def toCollection(repr: Iterable[A]): Iterable[A]

    A conversion from collections of type Repr to Iterable objects.

  119. def toIndexedSeq[B >: A]: IndexedSeq[B]

    Converts this iterable collection to an indexed sequence.

  120. def toIterable: Iterable[A]

    Converts this iterable collection to an iterable collection.

  121. def toIterator: Iterator[A]

    Returns an Iterator over the elements in this iterable collection.

  122. def toList: List[A]

    Converts this iterable collection to a list.

  123. def toMap[T, U](implicit ev: <:<[A, (T, U)]): Map[T, U]

    Converts this iterable collection to a map.

  124. def toSeq: Seq[A]

    Converts this iterable collection to a sequence.

  125. def toSet[B >: A]: Set[B]

    Converts this iterable collection to a set.

  126. def toStream: Stream[A]

    Converts this iterable collection to a stream.

  127. def toString(): String

    Converts this iterable collection to a string.

  128. def toTraversable: Traversable[A]

    Converts this iterable collection to an unspecified Traversable.

  129. def transpose[B](implicit asTraversable: (A) ⇒ Traversable[B]): Iterable[Iterable[B]]

    Transposes this iterable collection of traversable collections into a iterable collection of iterable collections.

  130. val underlying: Iterable[A]

  131. def unzip[A1, A2](implicit asPair: (A) ⇒ (A1, A2)): (Iterable[A1], Iterable[A2])

    Converts this iterable collection of pairs into two collections of the first and second halfs of each pair.

  132. def view(from: Int, until: Int): IterableView[A, Iterable[A]]

    Creates a non-strict view of a slice of this iterable collection.

  133. def view: IterableView[A, Iterable[A]]

    Creates a non-strict view of this iterable collection.

  134. def wait(): Unit

  135. def wait(arg0: Long, arg1: Int): Unit

  136. def wait(arg0: Long): Unit

  137. def withFilter(p: (A) ⇒ Boolean): FilterMonadic[A, Iterable[A]]

    Creates a non-strict filter of this iterable collection.

  138. def zip[B](that: Iterable[B]): Iterable[(A, B)]

    [use case] Returns a iterable collection formed from this iterable collection and another iterable collection by combining corresponding elements in pairs.

  139. def zip[A1 >: A, B, That](that: Iterable[B])(implicit bf: CanBuildFrom[Iterable[A], (A1, B), That]): That

    Returns a iterable collection formed from this iterable collection and another iterable collection by combining corresponding elements in pairs.

  140. def zipAll[B](that: Iterable[B], thisElem: A, thatElem: B): Iterable[(A, B)]

    [use case] Returns a iterable collection formed from this iterable collection and another iterable collection by combining corresponding elements in pairs.

  141. def zipAll[B, A1 >: A, That](that: Iterable[B], thisElem: A1, thatElem: B)(implicit bf: CanBuildFrom[Iterable[A], (A1, B), That]): That

    Returns a iterable collection formed from this iterable collection and another iterable collection by combining corresponding elements in pairs.

  142. def zipWithIndex: Iterable[(A, Int)]

    [use case] Zips this iterable collection with its indices.

  143. def zipWithIndex[A1 >: A, That](implicit bf: CanBuildFrom[Iterable[A], (A1, Int), That]): That

    Zips this iterable collection with its indices.