scala.reflect.internal.util

Collections

trait Collections extends AnyRef

Profiler driven changes. TODO - inlining doesn't work from here because of the bug that methods in traits aren't inlined.

Source
Collections.scala
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Collections
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringfmt
  2. by any2stringadd
  3. by any2ArrowAssoc
  4. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from Collections to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (Collections, B)

    Implicit information
    This member is added by an implicit conversion from Collections to ArrowAssoc[Collections] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

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

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  10. final def collectMap2[A, B, C](xs1: List[A], xs2: List[B])(p: (A, B) ⇒ Boolean): Map[A, B]

  11. final def corresponds3[A, B, C](xs1: List[A], xs2: List[B], xs3: List[C])(f: (A, B, C) ⇒ Boolean): Boolean

    True if all three arguments have the same number of elements and the function is true for all the triples.

    True if all three arguments have the same number of elements and the function is true for all the triples.

    Annotations
    @tailrec()
  12. final def distinctBy[A, B](xs: List[A])(f: (A) ⇒ B): List[A]

  13. def ensuring(cond: (Collections) ⇒ Boolean, msg: ⇒ Any): Collections

    Implicit information
    This member is added by an implicit conversion from Collections to Ensuring[Collections] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: (Collections) ⇒ Boolean): Collections

    Implicit information
    This member is added by an implicit conversion from Collections to Ensuring[Collections] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: Boolean, msg: ⇒ Any): Collections

    Implicit information
    This member is added by an implicit conversion from Collections to Ensuring[Collections] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean): Collections

    Implicit information
    This member is added by an implicit conversion from Collections to Ensuring[Collections] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  19. final def exists2[A, B](xs1: List[A], xs2: List[B])(f: (A, B) ⇒ Boolean): Boolean

  20. def finalize(): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  21. final def findOrElse[A](xs: TraversableOnce[A])(p: (A) ⇒ Boolean)(orElse: ⇒ A): A

  22. final def flatCollect[A, B](elems: List[A])(pf: PartialFunction[A, Traversable[B]]): List[B]

  23. final def flatMap2[A, B, C](xs1: List[A], xs2: List[B])(f: (A, B) ⇒ List[C]): List[C]

  24. final def flattensToEmpty(xss: Seq[Seq[_]]): Boolean

    Annotations
    @tailrec()
  25. final def forall2[A, B](xs1: List[A], xs2: List[B])(f: (A, B) ⇒ Boolean): Boolean

  26. final def forall3[A, B, C](xs1: List[A], xs2: List[B], xs3: List[C])(f: (A, B, C) ⇒ Boolean): Boolean

  27. final def foreach2[A, B](xs1: List[A], xs2: List[B])(f: (A, B) ⇒ Unit): Unit

  28. final def foreach3[A, B, C](xs1: List[A], xs2: List[B], xs3: List[C])(f: (A, B, C) ⇒ Unit): Unit

  29. final def foreachWithIndex[A, B](xs: List[A])(f: (A, Int) ⇒ Unit): Unit

  30. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from Collections to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  31. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  32. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  33. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  34. final def map2[A, B, C](xs1: List[A], xs2: List[B])(f: (A, B) ⇒ C): List[C]

  35. final def map3[A, B, C, D](xs1: List[A], xs2: List[B], xs3: List[C])(f: (A, B, C) ⇒ D): List[D]

  36. final def mapFrom[A, A1 >: A, B](xs: List[A])(f: (A) ⇒ B): Map[A1, B]

  37. final def mapWithIndex[A, B](xs: List[A])(f: (A, Int) ⇒ B): List[B]

  38. final def mexists[A](xss: List[List[A]])(p: (A) ⇒ Boolean): Boolean

    All these mm methods are "deep map" style methods for mapping etc.

    All these mm methods are "deep map" style methods for mapping etc. on a list of lists while avoiding unnecessary intermediate structures like those created via flatten.

  39. final def mfilter[A](xss: List[List[A]])(p: (A) ⇒ Boolean): List[A]

  40. final def mfind[A](xss: List[List[A]])(p: (A) ⇒ Boolean): Option[A]

  41. final def mforall[A](xss: List[List[A]])(p: (A) ⇒ Boolean): Boolean

  42. final def mforeach[A](xss: List[List[A]])(f: (A) ⇒ Unit): Unit

  43. final def mmap[A, B](xss: List[List[A]])(f: (A) ⇒ B): List[List[B]]

  44. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  45. final def notify(): Unit

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

    Definition Classes
    AnyRef
  47. val self: Any

    Implicit information
    This member is added by an implicit conversion from Collections to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
  48. val self: Any

    Implicit information
    This member is added by an implicit conversion from Collections to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  49. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  50. def toString(): String

    Definition Classes
    AnyRef → Any
  51. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  54. def [B](y: B): (Collections, B)

    Implicit information
    This member is added by an implicit conversion from Collections to ArrowAssoc[Collections] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Deprecated Value Members

  1. def x: Collections

    Implicit information
    This member is added by an implicit conversion from Collections to ArrowAssoc[Collections] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: Collections

    Implicit information
    This member is added by an implicit conversion from Collections to Ensuring[Collections] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringfmt from Collections to StringFormat

Inherited by implicit conversion any2stringadd from Collections to StringAdd

Inherited by implicit conversion any2ArrowAssoc from Collections to ArrowAssoc[Collections]

Inherited by implicit conversion any2Ensuring from Collections to Ensuring[Collections]