Packages

  • package root
    Definition Classes
    root
  • package org
    Definition Classes
    root
  • package opalj

    OPAL is a Scala-based framework for the static analysis, manipulation and creation of Java bytecode.

    OPAL is a Scala-based framework for the static analysis, manipulation and creation of Java bytecode. OPAL is designed with performance, scalability and adaptability in mind.

    Its main components are:

    • a library (Common) which provides generally useful data-structures and algorithms for static analyses.
    • a framework for implementing lattice based static analyses (Static Analysis Infrastructure)
    • a framework for parsing Java bytecode (Bytecode Infrastructure) that can be used to create arbitrary representations.
    • a library to create a one-to-one in-memory representation of Java bytecode (Bytecode Disassembler).
    • a library to create a representation of Java bytecode that facilitates writing simple static analyses (Bytecode Representation - org.opalj.br).
    • a scalable, easily customizable framework for the abstract interpretation of Java bytecode (Abstract Interpretation Framework - org.opalj.ai).
    • a library to extract dependencies between code elements and to facilitate checking architecture definitions.
    • a library for the lightweight manipulation and creation of Java bytecode (Bytecode Assembler).

    General Design Decisions

    Thread Safety

    Unless explicitly noted, OPAL is thread safe. I.e., the classes defined by OPAL can be considered to be thread safe unless otherwise stated. (For example, it is possible to read and process class files concurrently without explicit synchronization on the client side.)

    No null Values

    Unless explicitly noted, OPAL does not null values I.e., fields that are accessible will never contain null values and methods will never return null. If a method accepts null as a value for a parameter or returns a null value it is always explicitly documented. In general, the behavior of methods that are passed null values is undefined unless explicitly documented.

    No Typecasts for Collections

    For efficiency reasons, OPAL sometimes uses mutable data-structures internally. After construction time, these data-structures are generally represented using their generic interfaces (e.g., scala.collection.{Set,Map}). However, a downcast (e.g., to add/remove elements) is always forbidden as it would effectively prevent thread-safety.

    Assertions

    OPAL makes heavy use of Scala's Assertion Facility to facilitate writing correct code. Hence, for production builds (after thorough testing(!)) it is highly recommend to build OPAL again using -Xdisable-assertions.

    Definition Classes
    org
  • package collection

    OPAL's collection library is primarily designed with high performance in mind.

    Design Goals

    OPAL's collection library is primarily designed with high performance in mind. I.e., all methods provided by the collection library are reasonably optimized. However, providing a very large number of methods is a non-goal. Overall, OPAL's collection library provides:

    • collection classes that are manually specialized for primitive data-types.
    • collection classes that are optimized for particularly small collections of values.
    • collection classes that target special use cases such as using a collection as a workset/worklist.
    • collection classes that offer special methods that minimize the number of steps when compared to general purpose methods.

    Integration With Scala's Collection Library

    Hence, OPAL's collection library complements Scala's default collection library and is not intended to replace it. Integration with Scala's collection library is primarily provided by means of iterators (OPAL's Iterators inherit from Scala's Iterators). Furthermore the companion object of each of OPAL's collection classes generally provides factory methods that facilitate the conversion from Scala collection classes to OPAL collection classes.

    Status

    The collection library is growing. Nevertheless, the existing classes are production ready.

    Definition Classes
    opalj
  • package eval
    Definition Classes
    collection
  • package immutable
    Definition Classes
    collection
  • package mutable
    Definition Classes
    collection
  • BitSet
  • CompleteCollection
  • EqualSets
  • ForeachRefIterator
  • IncompleteCollection
  • IntCollectionWithStableOrdering
  • IntIterator
  • IntSet
  • LongCollectionWithStableOrdering
  • LongIterator
  • LongSet
  • QualifiedCollection
  • RefIndexedView
  • SetRelation
  • SingletonSet
  • StrictSubset
  • StrictSuperset
  • UID
  • UIDValue
  • UncomparableSets

abstract class IntIterator extends AbstractIterator[Int]

Iterator over a collection of primitive int valuea; basically overrides all inherited methods to avoid (un)boxing.

Self Type
IntIterator
Source
IntIterator.scala
Note

No guarantee is given what will happen if next is called after hasNext returns or would have returned false.

Linear Supertypes
AbstractIterator[Int], Iterator[Int], IterableOnceOps[Int, Iterator, Iterator[Int]], IterableOnce[Int], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. IntIterator
  2. AbstractIterator
  3. Iterator
  4. IterableOnceOps
  5. IterableOnce
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new IntIterator()

Type Members

  1. class GroupedIterator[B >: A] extends AbstractIterator[Seq[B]]
    Definition Classes
    Iterator

Abstract Value Members

  1. abstract def hasNext: Boolean
    Definition Classes
    Iterator
  2. abstract def next(): Int

    Returns the next value if hasNext has returned true; if hasNext has returned false and next is called, the result is undefined.

    Returns the next value if hasNext has returned true; if hasNext has returned false and next is called, the result is undefined. The method may throw any exception, e.g., a NullPointerException, or just return the last value; however, the behavior is undefined and subject to change without notice!

    Definition Classes
    IntIterator → Iterator

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ++[B >: Int](xs: => IterableOnce[B]): Iterator[B]
    Definition Classes
    Iterator
    Annotations
    @inline()
  4. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  5. final def addString(b: StringBuilder): b.type
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  6. final def addString(b: StringBuilder, sep: String): b.type
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  7. def addString(b: StringBuilder, start: String, sep: String, end: String): b.type
    Definition Classes
    IterableOnceOps
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def buffered: BufferedIterator[Int]
    Definition Classes
    Iterator
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  11. def collect[B](pf: PartialFunction[Int, B]): Iterator[B]
    Definition Classes
    Iterator → IterableOnceOps
  12. def collectFirst[B](pf: PartialFunction[Int, B]): Option[B]
    Definition Classes
    IterableOnceOps
  13. def concat[B >: Int](xs: => IterableOnce[B]): Iterator[B]
    Definition Classes
    Iterator
  14. def contains(i: Int): Boolean
  15. def contains(elem: Any): Boolean
    Definition Classes
    Iterator
  16. def copyToArray(size: Int): Array[Int]

    Copies all elements to a new array of the given size.

    Copies all elements to a new array of the given size.

    Note

    This method should be overwritten, when the underlying collection is already any array and more efficient operation, aka System.arrayCopy can be used.

  17. def copyToArray[B >: Int](xs: Array[B], start: Int, len: Int): Int
    Definition Classes
    IterableOnceOps
  18. def copyToArray[B >: Int](xs: Array[B], start: Int): Int
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecatedOverriding()
  19. def copyToArray[B >: Int](xs: Array[B]): Int
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecatedOverriding()
  20. def corresponds[B](that: IterableOnce[B])(p: (Int, B) => Boolean): Boolean
    Definition Classes
    IterableOnceOps
  21. def count(p: (Int) => Boolean): Int
    Definition Classes
    IterableOnceOps
  22. def distinct: Iterator[Int]
    Definition Classes
    Iterator
  23. def distinctBy[B](f: (Int) => B): Iterator[Int]
    Definition Classes
    Iterator
  24. def drop(n: Int): Iterator[Int]
    Definition Classes
    Iterator → IterableOnceOps
  25. def dropWhile(p: (Int) => Boolean): Iterator[Int]
    Definition Classes
    Iterator → IterableOnceOps
  26. def duplicate: (Iterator[Int], Iterator[Int])
    Definition Classes
    Iterator
  27. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  29. def exists(p: (Int) => Boolean): Boolean
    Definition Classes
    IntIterator → IterableOnceOps
  30. final def filter(p: (Int) => Boolean): IntIterator
    Definition Classes
    IntIterator → Iterator → IterableOnceOps
  31. def filterNot(p: (Int) => Boolean): Iterator[Int]
    Definition Classes
    Iterator → IterableOnceOps
  32. def find(p: (Int) => Boolean): Option[Int]
    Definition Classes
    IterableOnceOps
  33. def flatMap[T](f: (Int) => Iterator[T]): Iterator[T]
  34. def flatMap(f: (Int) => IntIterator): IntIterator
  35. def flatMap[B](f: (Int) => IterableOnce[B]): Iterator[B]
    Definition Classes
    Iterator → IterableOnceOps
  36. def flatten[B](implicit ev: (Int) => IterableOnce[B]): Iterator[B]
    Definition Classes
    Iterator → IterableOnceOps
  37. def fold[A1 >: Int](z: A1)(op: (A1, A1) => A1): A1
    Definition Classes
    IterableOnceOps
  38. def foldLeft[T](start: T)(f: (T, Int) => T): T
    Definition Classes
    IntIterator → IterableOnceOps
  39. def foldLeft(start: Long)(f: (Long, Int) => Long): Long
  40. def foldLeft(start: Int)(f: (Int, Int) => Int): Int
  41. def foldRight[B](z: B)(op: (Int, B) => B): B
    Definition Classes
    IterableOnceOps
  42. def forall(p: (Int) => Boolean): Boolean
    Definition Classes
    IntIterator → IterableOnceOps
  43. def foreach[U](f: (Int) => U): Unit
    Definition Classes
    IntIterator → IterableOnceOps
  44. def foreachWhile[U](p: (Int) => Boolean)(f: (Int) => U): Unit

    Executes the given function f until an element is found for which p evaluates to false or all elements have been processed.

  45. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  46. def grouped[B >: Int](size: Int): GroupedIterator[B]
    Definition Classes
    Iterator
  47. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  48. def indexOf[B >: Int](elem: B, from: Int): Int
    Definition Classes
    Iterator
  49. def indexOf[B >: Int](elem: B): Int
    Definition Classes
    Iterator
  50. def indexWhere(p: (Int) => Boolean, from: Int): Int
    Definition Classes
    Iterator
  51. def isEmpty: Boolean
    Definition Classes
    Iterator → IterableOnceOps
    Annotations
    @deprecatedOverriding()
  52. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  53. def isTraversableAgain: Boolean
    Definition Classes
    IterableOnceOps
  54. final def iterator: Iterator[Int]
    Definition Classes
    Iterator → IterableOnce
    Annotations
    @inline()
  55. def knownSize: Int
    Definition Classes
    IterableOnce
  56. final def length: Int
    Definition Classes
    Iterator
    Annotations
    @inline()
  57. def map[T](f: (Int) => T): Iterator[T]
    Definition Classes
    IntIterator → Iterator → IterableOnceOps
  58. def map(f: (Int) => Long): LongIterator
  59. def map(f: (Int) => Int): IntIterator
  60. def max[B >: Int](implicit ord: Ordering[B]): Int
    Definition Classes
    IterableOnceOps
  61. def maxBy[B](f: (Int) => B)(implicit cmp: Ordering[B]): Int
    Definition Classes
    IterableOnceOps
  62. def maxByOption[B](f: (Int) => B)(implicit cmp: Ordering[B]): Option[Int]
    Definition Classes
    IterableOnceOps
  63. def maxOption[B >: Int](implicit ord: Ordering[B]): Option[Int]
    Definition Classes
    IterableOnceOps
  64. def min[B >: Int](implicit ord: Ordering[B]): Int
    Definition Classes
    IterableOnceOps
  65. def minBy[B](f: (Int) => B)(implicit cmp: Ordering[B]): Int
    Definition Classes
    IterableOnceOps
  66. def minByOption[B](f: (Int) => B)(implicit cmp: Ordering[B]): Option[Int]
    Definition Classes
    IterableOnceOps
  67. def minOption[B >: Int](implicit ord: Ordering[B]): Option[Int]
    Definition Classes
    IterableOnceOps
  68. final def mkString: String
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  69. final def mkString(sep: String): String
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  70. final def mkString(start: String, sep: String, end: String): String
    Definition Classes
    IterableOnceOps
  71. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  72. def nextOption(): Option[Int]
    Definition Classes
    Iterator
  73. def nonEmpty: Boolean
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecatedOverriding()
  74. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  75. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  76. def padTo[B >: Int](len: Int, elem: B): Iterator[B]
    Definition Classes
    Iterator
  77. def partition(p: (Int) => Boolean): (Iterator[Int], Iterator[Int])
    Definition Classes
    Iterator
  78. def patch[B >: Int](from: Int, patchElems: Iterator[B], replaced: Int): Iterator[B]
    Definition Classes
    Iterator
  79. def product[B >: Int](implicit num: Numeric[B]): B
    Definition Classes
    IterableOnceOps
  80. def reduce[B >: Int](op: (B, B) => B): B
    Definition Classes
    IterableOnceOps
  81. def reduceLeft[B >: Int](op: (B, Int) => B): B
    Definition Classes
    IterableOnceOps
  82. def reduceLeftOption[B >: Int](op: (B, Int) => B): Option[B]
    Definition Classes
    IterableOnceOps
  83. def reduceOption[B >: Int](op: (B, B) => B): Option[B]
    Definition Classes
    IterableOnceOps
  84. def reduceRight[B >: Int](op: (Int, B) => B): B
    Definition Classes
    IterableOnceOps
  85. def reduceRightOption[B >: Int](op: (Int, B) => B): Option[B]
    Definition Classes
    IterableOnceOps
  86. def reversed: Iterable[Int]
    Attributes
    protected
    Definition Classes
    IterableOnceOps
  87. def sameElements[B >: Int](that: IterableOnce[B]): Boolean
    Definition Classes
    Iterator
  88. def sameValues(that: IntIterator): Boolean

    Compares the returned values to check if the iteration order is the same.

    Compares the returned values to check if the iteration order is the same.

    Both iterators may be consumed up to an arbitrary point.

  89. def scanLeft[B](z: B)(op: (B, Int) => B): Iterator[B]
    Definition Classes
    Iterator → IterableOnceOps
  90. def size: Int
    Definition Classes
    IterableOnceOps
  91. def slice(from: Int, until: Int): Iterator[Int]
    Definition Classes
    Iterator → IterableOnceOps
  92. def sliceIterator(from: Int, until: Int): Iterator[Int]
    Attributes
    protected
    Definition Classes
    Iterator
  93. def sliding[B >: Int](size: Int, step: Int): GroupedIterator[B]
    Definition Classes
    Iterator
  94. def span(p: (Int) => Boolean): (Iterator[Int], Iterator[Int])
    Definition Classes
    Iterator → IterableOnceOps
  95. def splitAt(n: Int): (Iterator[Int], Iterator[Int])
    Definition Classes
    IterableOnceOps
  96. def stepper[S <: Stepper[_]](implicit shape: StepperShape[Int, S]): S
    Definition Classes
    IterableOnce
  97. def sum[B >: Int](implicit num: Numeric[B]): B
    Definition Classes
    IterableOnceOps
  98. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  99. def take(n: Int): Iterator[Int]
    Definition Classes
    Iterator → IterableOnceOps
  100. def takeWhile(p: (Int) => Boolean): Iterator[Int]
    Definition Classes
    Iterator → IterableOnceOps
  101. def tapEach[U](f: (Int) => U): Iterator[Int]
    Definition Classes
    Iterator → IterableOnceOps
  102. def to[C1](factory: Factory[Int, C1]): C1
    Definition Classes
    IterableOnceOps
  103. def toArray: Array[Int]

    Note

    This method, as well as the generic toArray should be overwritten when the size is known.

  104. def toArray[B >: Int](implicit arg0: ClassTag[B]): Array[B]
    Definition Classes
    IterableOnceOps
  105. final def toBuffer[B >: Int]: Buffer[B]
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  106. def toIndexedSeq: IndexedSeq[Int]
    Definition Classes
    IterableOnceOps
  107. def toList: List[Int]
    Definition Classes
    IntIterator → IterableOnceOps
  108. def toMap[K, V](implicit ev: <:<[Int, (K, V)]): Map[K, V]
    Definition Classes
    IterableOnceOps
  109. def toSeq: Seq[Int]
    Definition Classes
    IterableOnceOps
  110. def toSet: IntTrieSet
  111. def toSet[B >: Int]: Set[B]
    Definition Classes
    IterableOnceOps
  112. def toSortedSet: IntArraySet

    Note

    This method should be overwritten, when the underlying collection is already sorted.

  113. def toString(): String
    Definition Classes
    Iterator → AnyRef → Any
  114. def toVector: Vector[Int]
    Definition Classes
    IterableOnceOps
  115. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  116. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  117. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  118. def withFilter(p: (Int) => Boolean): IntIterator
    Definition Classes
    IntIterator → Iterator
  119. def zip[B](that: IterableOnce[B]): Iterator[(Int, B)]
    Definition Classes
    Iterator
  120. def zipAll[A1 >: Int, B](that: IterableOnce[B], thisElem: A1, thatElem: B): Iterator[(A1, B)]
    Definition Classes
    Iterator
  121. def zipWithIndex: Iterator[(Int, Int)]
    Definition Classes
    Iterator → IterableOnceOps

Deprecated Value Members

  1. final def /:[B](z: B)(op: (B, Int) => B): B
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use foldLeft instead of /:

  2. final def :\[B](z: B)(op: (Int, B) => B): B
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use foldRight instead of :\

  3. def aggregate[B](z: => B)(seqop: (B, Int) => B, combop: (B, B) => B): B
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) aggregate is not relevant for sequential collections. Use foldLeft(z)(seqop) instead.

  4. final def copyToBuffer[B >: Int](dest: Buffer[B]): Unit
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use dest ++= coll instead

  5. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated
  6. final def hasDefiniteSize: Boolean
    Definition Classes
    Iterator → IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) hasDefiniteSize on Iterator is the same as isEmpty

  7. def scanRight[B](z: B)(op: (Int, B) => B): Iterator[B]
    Definition Classes
    Iterator
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Call scanRight on an Iterable instead.

  8. def seq: IntIterator.this.type
    Definition Classes
    Iterator
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Iterator.seq always returns the iterator itself

  9. final def toIterator: Iterator[Int]
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use .iterator instead of .toIterator

  10. final def toStream: Stream[Int]
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.13.0) Use .to(LazyList) instead of .toStream

Inherited from AbstractIterator[Int]

Inherited from Iterator[Int]

Inherited from IterableOnceOps[Int, Iterator, Iterator[Int]]

Inherited from IterableOnce[Int]

Inherited from AnyRef

Inherited from Any

Ungrouped