Packages

c

scala.collection

IterableOnceExtensionMethods

final class IterableOnceExtensionMethods[A] extends AnyVal

Source
IterableOnce.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. IterableOnceExtensionMethods
  2. AnyVal
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new IterableOnceExtensionMethods(it: IterableOnce[A])

Value Members

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

    Test two objects for inequality.

    Test two objects for inequality.

    returns

    true if !(this == that), false otherwise.

    Definition Classes
    Any
  2. final def ##: Int

    Equivalent to x.hashCode except for boxed numeric types and null.

    Equivalent to x.hashCode except for boxed numeric types and null. For numerics, it returns a hash value which is consistent with value equality: if two value type instances compare as true, then ## will produce the same hash value for each of them. For null returns a hashcode where null.hashCode throws a NullPointerException.

    returns

    a hash value consistent with ==

    Definition Classes
    Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from IterableOnceExtensionMethods[A] toany2stringadd[IterableOnceExtensionMethods[A]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (IterableOnceExtensionMethods[A], B)
    Implicit
    This member is added by an implicit conversion from IterableOnceExtensionMethods[A] toArrowAssoc[IterableOnceExtensionMethods[A]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Test two objects for equality.

    Test two objects for equality. The expression x == that is equivalent to if (x eq null) that eq null else x.equals(that).

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Cast the receiver object to be of type T0.

    Cast the receiver object to be of type T0.

    Note that the success of a cast at runtime is modulo Scala's erasure semantics. Therefore the expression 1.asInstanceOf[String] will throw a ClassCastException at runtime, while the expression List(1).asInstanceOf[List[String]] will not. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the requested type.

    returns

    the receiver object.

    Definition Classes
    Any
    Exceptions thrown

    ClassCastException if the receiver object is not an instance of the erasure of type T0.

  7. def ensuring(cond: (IterableOnceExtensionMethods[A]) => Boolean, msg: => Any): IterableOnceExtensionMethods[A]
    Implicit
    This member is added by an implicit conversion from IterableOnceExtensionMethods[A] toEnsuring[IterableOnceExtensionMethods[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  8. def ensuring(cond: (IterableOnceExtensionMethods[A]) => Boolean): IterableOnceExtensionMethods[A]
    Implicit
    This member is added by an implicit conversion from IterableOnceExtensionMethods[A] toEnsuring[IterableOnceExtensionMethods[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  9. def ensuring(cond: Boolean, msg: => Any): IterableOnceExtensionMethods[A]
    Implicit
    This member is added by an implicit conversion from IterableOnceExtensionMethods[A] toEnsuring[IterableOnceExtensionMethods[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: Boolean): IterableOnceExtensionMethods[A]
    Implicit
    This member is added by an implicit conversion from IterableOnceExtensionMethods[A] toEnsuring[IterableOnceExtensionMethods[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def formatted(fmtstr: String): String

    Returns string formatted according to given format string.

    Returns string formatted according to given format string. Format strings are as for String.format (@see java.lang.String.format).

    Implicit
    This member is added by an implicit conversion from IterableOnceExtensionMethods[A] toStringFormat[IterableOnceExtensionMethods[A]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  12. def getClass(): Class[_ <: AnyVal]

    Returns the runtime class representation of the object.

    Returns the runtime class representation of the object.

    returns

    a class object corresponding to the runtime type of the receiver.

    Definition Classes
    AnyValAny
  13. final def isInstanceOf[T0]: Boolean

    Test whether the dynamic type of the receiver object is T0.

    Test whether the dynamic type of the receiver object is T0.

    Note that the result of the test is modulo Scala's erasure semantics. Therefore the expression 1.isInstanceOf[String] will return false, while the expression List(1).isInstanceOf[List[String]] will return true. In the latter example, because the type argument is erased as part of compilation it is not possible to check whether the contents of the list are of the specified type.

    returns

    true if the receiver object is an instance of erasure of type T0; false otherwise.

    Definition Classes
    Any
  14. def toString(): String

    Returns a string representation of the object.

    Returns a string representation of the object.

    The default representation is platform dependent.

    returns

    a string representation of the object.

    Definition Classes
    Any

Deprecated Value Members

  1. def /:[B](z: B)(op: (B, A) => B): B
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use .iterator.foldLeft instead

  2. def :\[B](z: B)(op: (A, B) => B): B
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use .iterator.foldRight instead

  3. def collectFirst[B](f: PartialFunction[A, B]): Option[B]
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use .iterator.collectFirst(...) instead

  4. def copyToBuffer(dest: Buffer[A]): Unit
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use .iterator.copyToBuffer(...) instead

  5. def count(f: (A) => Boolean): Int
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use .iterator.count(...) instead

  6. def exists(f: (A) => Boolean): Boolean
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use .iterator.exists(...) instead

  7. def filter(f: (A) => Boolean): Iterator[A]
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use .iterator.filter(...) instead

  8. def find(p: (A) => Boolean): Option[A]
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use .iterator.find instead

  9. def flatMap[B](f: (A) => IterableOnce[B]): IterableOnce[B]
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use .iterator.flatMap instead or consider requiring an Iterable

  10. def fold[A1 >: A](z: A1)(op: (A1, A1) => A1): A1
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use .iterator.fold instead

  11. def foldLeft[B](z: B)(op: (B, A) => B): B
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use .iterator.foldLeft instead

  12. def foldRight[B](z: B)(op: (A, B) => B): B
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use .iterator.foldRight instead

  13. def forall(f: (A) => Boolean): Boolean
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use .iterator.forall(...) instead

  14. def foreach[U](f: (A) => U): Unit
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use .iterator.foreach(...) instead

  15. def isEmpty: Boolean
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use .iterator.isEmpty instead

  16. def map[B](f: (A) => B): IterableOnce[B]
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use .iterator.map instead or consider requiring an Iterable

  17. def max(implicit ord: math.Ordering[A]): A
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use .iterator.max instead

  18. def maxBy[B](f: (A) => B)(implicit cmp: math.Ordering[B]): A
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use .iterator.maxBy(...) instead

  19. def min(implicit ord: math.Ordering[A]): A
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use .iterator.min instead

  20. def minBy[B](f: (A) => B)(implicit cmp: math.Ordering[B]): A
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use .iterator.minBy(...) instead

  21. def mkString: String
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use .iterator.mkString instead

  22. def mkString(sep: String): String
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use .iterator.mkString instead

  23. def mkString(start: String, sep: String, end: String): String
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use .iterator.mkString instead

  24. def nonEmpty: Boolean
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use .iterator.nonEmpty instead

  25. def product(implicit num: math.Numeric[A]): A
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use .iterator.product instead

  26. def reduce(f: (A, A) => A): A
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use .iterator.reduce(...) instead

  27. def reduceLeft(f: (A, A) => A): A
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use .iterator.reduceLeft(...) instead

  28. def reduceLeftOption(f: (A, A) => A): Option[A]
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use .iterator.reduceLeftOption(...) instead

  29. def reduceOption(f: (A, A) => A): Option[A]
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use .iterator.reduceOption(...) instead

  30. def reduceRight(f: (A, A) => A): A
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use .iterator.reduceRight(...) instead

  31. def reduceRightOption(f: (A, A) => A): Option[A]
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use .iterator.reduceRightOption(...) instead

  32. def sameElements[B >: A](that: IterableOnce[B]): Boolean
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use .iterator.sameElements instead

  33. def size: Int
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use .iterator.size instead

  34. def sum(implicit num: math.Numeric[A]): A
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use .iterator.sum instead

  35. def to[C1](factory: Factory[A, C1]): C1
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use .iterator.to(factory) instead

  36. def toArray[B >: A](implicit arg0: ClassTag[B]): Array[B]
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use .iterator.toArray

  37. def toBuffer[B >: A]: Buffer[B]
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use .iterator.to(ArrayBuffer) instead

  38. def toIndexedSeq: IndexedSeq[A]
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use .iterator.toIndexedSeq instead

  39. final def toIterable: Iterable[A]
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use .iterator.to(Iterable) instead

  40. def toIterator: Iterator[A]
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use .iterator instead

  41. def toList: immutable.List[A]
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use .iterator.to(List) instead

  42. def toMap[K, V](implicit ev: <:<[A, (K, V)]): immutable.Map[K, V]
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use .iterator.to(Map) instead

  43. def toSeq: immutable.Seq[A]
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use .iterator.to(Seq) instead

  44. def toSet[B >: A]: immutable.Set[B]
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use .iterator.to(Set) instead

  45. def toStream: immutable.Stream[A]
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use .iterator.to(LazyList) instead

  46. final def toTraversable: Traversable[A]
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use .iterator.to(Iterable) instead

  47. def toVector: immutable.Vector[A]
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use .iterator.to(Vector) instead

  48. def withFilter(f: (A) => Boolean): Iterator[A]
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use .iterator.withFilter(...) instead

  49. def [B](y: B): (IterableOnceExtensionMethods[A], B)
    Implicit
    This member is added by an implicit conversion from IterableOnceExtensionMethods[A] toArrowAssoc[IterableOnceExtensionMethods[A]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from AnyVal

Inherited from Any

Inherited by implicit conversion any2stringadd fromIterableOnceExtensionMethods[A] to any2stringadd[IterableOnceExtensionMethods[A]]

Inherited by implicit conversion StringFormat fromIterableOnceExtensionMethods[A] to StringFormat[IterableOnceExtensionMethods[A]]

Inherited by implicit conversion Ensuring fromIterableOnceExtensionMethods[A] to Ensuring[IterableOnceExtensionMethods[A]]

Inherited by implicit conversion ArrowAssoc fromIterableOnceExtensionMethods[A] to ArrowAssoc[IterableOnceExtensionMethods[A]]

Ungrouped