sealed trait IntList extends Serializable
An immutable linked list for storing int values.
This list does not perform any length related checks. I.e., it fails,e.g., in
case of forFirstN
if the size of the list is smaller than expected.
Furthermore, all directly implemented methods use while
loops for maximum
efficiency.
- Self Type
- IntList
- Source
- IntList.scala
- Note
In many cases the Int2List provides better performance than this list if your problem fits the requirements of Int2Lists.
,In most cases a
IntList
can be used as a drop-in replacement for a standard Scala List.
- Alphabetic
- By Inheritance
- IntList
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def +:(v: Int): IntList
Prepends the given value to this list.
Prepends the given value to this list. E.g.,
l = 2l +: l
. - abstract def equals(that: IntList): Boolean
- abstract def forFirstN[U](n: Int)(f: (Int) => U): Unit
Iterates over the first N values.
- abstract def foreach[U](f: (Int) => U): Unit
- abstract def head: Int
- abstract def isEmpty: Boolean
- abstract def iterator: IntIterator
- abstract def nonEmpty: Boolean
- abstract def tail: IntList
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def equals(other: Any): Boolean
- Definition Classes
- IntList → AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated