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 LongIterator extends AbstractIterator[Long]

Iterator over a collection of longs; basically all methods are overridden to avoid (un)boxing operations.

Self Type
LongIterator
Source
LongIterator.scala
Linear Supertypes
AbstractIterator[Long], Iterator[Long], IterableOnceOps[Long, Iterator, Iterator[Long]], IterableOnce[Long], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LongIterator
  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 LongIterator()

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(): Long

    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 an UnsupportedOperationException or just return the last value; however, the behavior is undefined and subject to change without notice!

    Definition Classes
    LongIterator → Iterator

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def ++(other: LongIterator): LongIterator
  4. final def ++[B >: Long](xs: => IterableOnce[B]): Iterator[B]
    Definition Classes
    Iterator
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def addString(b: StringBuilder): b.type
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  7. final def addString(b: StringBuilder, sep: String): b.type
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  8. def addString(b: StringBuilder, start: String, sep: String, end: String): b.type
    Definition Classes
    IterableOnceOps
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def buffered: BufferedIterator[Long]
    Definition Classes
    Iterator
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  12. def collect[B](pf: PartialFunction[Long, B]): Iterator[B]
    Definition Classes
    Iterator → IterableOnceOps
  13. def collectFirst[B](pf: PartialFunction[Long, B]): Option[B]
    Definition Classes
    IterableOnceOps
  14. def concat[B >: Long](xs: => IterableOnce[B]): Iterator[B]
    Definition Classes
    Iterator
  15. def contains(i: Long): Boolean
  16. def contains(elem: Any): Boolean
    Definition Classes
    Iterator
  17. def copyToArray[B >: Long](xs: Array[B], start: Int, len: Int): Int
    Definition Classes
    IterableOnceOps
  18. def copyToArray[B >: Long](xs: Array[B], start: Int): Int
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecatedOverriding()
  19. def copyToArray[B >: Long](xs: Array[B]): Int
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecatedOverriding()
  20. def corresponds[B](that: IterableOnce[B])(p: (Long, B) => Boolean): Boolean
    Definition Classes
    IterableOnceOps
  21. def count(p: (Long) => Boolean): Int
    Definition Classes
    IterableOnceOps
  22. def distinct: Iterator[Long]
    Definition Classes
    Iterator
  23. def distinctBy[B](f: (Long) => B): Iterator[Long]
    Definition Classes
    Iterator
  24. def drop(n: Int): Iterator[Long]
    Definition Classes
    Iterator → IterableOnceOps
  25. def dropWhile(p: (Long) => Boolean): Iterator[Long]
    Definition Classes
    Iterator → IterableOnceOps
  26. def duplicate: (Iterator[Long], Iterator[Long])
    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: (Long) => Boolean): Boolean
    Definition Classes
    LongIterator → IterableOnceOps
  30. def filter(p: (Long) => Boolean): LongIterator
    Definition Classes
    LongIterator → Iterator → IterableOnceOps
  31. def filterNot(p: (Long) => Boolean): Iterator[Long]
    Definition Classes
    Iterator → IterableOnceOps
  32. def find(p: (Long) => Boolean): Option[Long]
    Definition Classes
    IterableOnceOps
  33. def flatMap(f: (Long) => LongIterator): LongIterator
  34. def flatMap[B](f: (Long) => IterableOnce[B]): Iterator[B]
    Definition Classes
    Iterator → IterableOnceOps
  35. def flatten[B](implicit ev: (Long) => IterableOnce[B]): Iterator[B]
    Definition Classes
    Iterator → IterableOnceOps
  36. def fold[A1 >: Long](z: A1)(op: (A1, A1) => A1): A1
    Definition Classes
    IterableOnceOps
  37. def foldLeft[B](start: B)(f: (B, Long) => B): B
    Definition Classes
    LongIterator → IterableOnceOps
  38. def foldRight[B](z: B)(op: (Long, B) => B): B
    Definition Classes
    IterableOnceOps
  39. def forall(p: (Long) => Boolean): Boolean
    Definition Classes
    LongIterator → IterableOnceOps
  40. def foreach[U](f: (Long) => U): Unit
    Definition Classes
    LongIterator → IterableOnceOps
  41. def foreachWhile(p: LongPredicate)(f: LongConsumer): Unit
  42. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  43. def grouped[B >: Long](size: Int): GroupedIterator[B]
    Definition Classes
    Iterator
  44. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  45. def indexOf[B >: Long](elem: B, from: Int): Int
    Definition Classes
    Iterator
  46. def indexOf[B >: Long](elem: B): Int
    Definition Classes
    Iterator
  47. def indexWhere(p: (Long) => Boolean, from: Int): Int
    Definition Classes
    Iterator
  48. def isEmpty: Boolean
    Definition Classes
    Iterator → IterableOnceOps
    Annotations
    @deprecatedOverriding()
  49. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  50. def isTraversableAgain: Boolean
    Definition Classes
    IterableOnceOps
  51. final def iterator: Iterator[Long]
    Definition Classes
    Iterator → IterableOnce
    Annotations
    @inline()
  52. def knownSize: Int
    Definition Classes
    IterableOnce
  53. final def length: Int
    Definition Classes
    Iterator
    Annotations
    @inline()
  54. def map[X](m: (Long) => X): Iterator[X]
    Definition Classes
    LongIterator → Iterator → IterableOnceOps
  55. def map(f: (Long) => Int): IntIterator
  56. def map(f: (Long) => Long): LongIterator
  57. def max[B >: Long](implicit ord: Ordering[B]): Long
    Definition Classes
    IterableOnceOps
  58. def maxBy[B](f: (Long) => B)(implicit cmp: Ordering[B]): Long
    Definition Classes
    IterableOnceOps
  59. def maxByOption[B](f: (Long) => B)(implicit cmp: Ordering[B]): Option[Long]
    Definition Classes
    IterableOnceOps
  60. def maxOption[B >: Long](implicit ord: Ordering[B]): Option[Long]
    Definition Classes
    IterableOnceOps
  61. def min[B >: Long](implicit ord: Ordering[B]): Long
    Definition Classes
    IterableOnceOps
  62. def minBy[B](f: (Long) => B)(implicit cmp: Ordering[B]): Long
    Definition Classes
    IterableOnceOps
  63. def minByOption[B](f: (Long) => B)(implicit cmp: Ordering[B]): Option[Long]
    Definition Classes
    IterableOnceOps
  64. def minOption[B >: Long](implicit ord: Ordering[B]): Option[Long]
    Definition Classes
    IterableOnceOps
  65. final def mkString: String
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  66. final def mkString(sep: String): String
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  67. final def mkString(start: String, sep: String, end: String): String
    Definition Classes
    IterableOnceOps
  68. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  69. def nextOption(): Option[Long]
    Definition Classes
    Iterator
  70. def nonEmpty: Boolean
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecatedOverriding()
  71. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  72. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  73. def padTo[B >: Long](len: Int, elem: B): Iterator[B]
    Definition Classes
    Iterator
  74. def partition(p: (Long) => Boolean): (Iterator[Long], Iterator[Long])
    Definition Classes
    Iterator
  75. def patch[B >: Long](from: Int, patchElems: Iterator[B], replaced: Int): Iterator[B]
    Definition Classes
    Iterator
  76. def product[B >: Long](implicit num: Numeric[B]): B
    Definition Classes
    IterableOnceOps
  77. def reduce[B >: Long](op: (B, B) => B): B
    Definition Classes
    IterableOnceOps
  78. def reduceLeft[B >: Long](op: (B, Long) => B): B
    Definition Classes
    IterableOnceOps
  79. def reduceLeftOption[B >: Long](op: (B, Long) => B): Option[B]
    Definition Classes
    IterableOnceOps
  80. def reduceOption[B >: Long](op: (B, B) => B): Option[B]
    Definition Classes
    IterableOnceOps
  81. def reduceRight[B >: Long](op: (Long, B) => B): B
    Definition Classes
    IterableOnceOps
  82. def reduceRightOption[B >: Long](op: (Long, B) => B): Option[B]
    Definition Classes
    IterableOnceOps
  83. def reversed: Iterable[Long]
    Attributes
    protected
    Definition Classes
    IterableOnceOps
  84. def sameElements[B >: Long](that: IterableOnce[B]): Boolean
    Definition Classes
    Iterator
  85. def sameValues(that: LongIterator): 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.

  86. def scanLeft[B](z: B)(op: (B, Long) => B): Iterator[B]
    Definition Classes
    Iterator → IterableOnceOps
  87. def size: Int
    Definition Classes
    IterableOnceOps
  88. def slice(from: Int, until: Int): Iterator[Long]
    Definition Classes
    Iterator → IterableOnceOps
  89. def sliceIterator(from: Int, until: Int): Iterator[Long]
    Attributes
    protected
    Definition Classes
    Iterator
  90. def sliding[B >: Long](size: Int, step: Int): GroupedIterator[B]
    Definition Classes
    Iterator
  91. def span(p: (Long) => Boolean): (Iterator[Long], Iterator[Long])
    Definition Classes
    Iterator → IterableOnceOps
  92. def splitAt(n: Int): (Iterator[Long], Iterator[Long])
    Definition Classes
    IterableOnceOps
  93. def stepper[S <: Stepper[_]](implicit shape: StepperShape[Long, S]): S
    Definition Classes
    IterableOnce
  94. def sum[B >: Long](implicit num: Numeric[B]): B
    Definition Classes
    IterableOnceOps
  95. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  96. def take(n: Int): LongIterator
    Definition Classes
    LongIterator → Iterator → IterableOnceOps
  97. def takeWhile(p: (Long) => Boolean): Iterator[Long]
    Definition Classes
    Iterator → IterableOnceOps
  98. def tapEach[U](f: (Long) => U): Iterator[Long]
    Definition Classes
    Iterator → IterableOnceOps
  99. def to[C1](factory: Factory[Long, C1]): C1
    Definition Classes
    IterableOnceOps
  100. def toArray: Array[Long]
  101. def toArray[B >: Long](implicit arg0: ClassTag[B]): Array[B]
    Definition Classes
    IterableOnceOps
  102. final def toBuffer[B >: Long]: Buffer[B]
    Definition Classes
    IterableOnceOps
    Annotations
    @inline()
  103. def toIndexedSeq: IndexedSeq[Long]
    Definition Classes
    IterableOnceOps
  104. def toList: List[Long]
    Definition Classes
    IterableOnceOps
  105. def toMap[K, V](implicit ev: <:<[Long, (K, V)]): Map[K, V]
    Definition Classes
    IterableOnceOps
  106. def toSeq: Seq[Long]
    Definition Classes
    IterableOnceOps
  107. def toSet: LongSet
  108. def toSet[B >: Long]: Set[B]
    Definition Classes
    IterableOnceOps
  109. def toString(): String
    Definition Classes
    Iterator → AnyRef → Any
  110. def toVector: Vector[Long]
    Definition Classes
    IterableOnceOps
  111. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  112. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  113. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  114. def withFilter(p: (Long) => Boolean): LongIterator
    Definition Classes
    LongIterator → Iterator
  115. def zip[B](that: IterableOnce[B]): Iterator[(Long, B)]
    Definition Classes
    Iterator
  116. def zipAll[A1 >: Long, B](that: IterableOnce[B], thisElem: A1, thatElem: B): Iterator[(A1, B)]
    Definition Classes
    Iterator
  117. def zipWithIndex: Iterator[(Long, Int)]
    Definition Classes
    Iterator → IterableOnceOps

Deprecated Value Members

  1. final def /:[B](z: B)(op: (B, Long) => 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: (Long, 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, Long) => 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 >: Long](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: (Long, B) => B): Iterator[B]
    Definition Classes
    Iterator
    Annotations
    @deprecated
    Deprecated

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

  8. def seq: LongIterator.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[Long]
    Definition Classes
    IterableOnceOps
    Annotations
    @deprecated @inline()
    Deprecated

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

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

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

Inherited from AbstractIterator[Long]

Inherited from Iterator[Long]

Inherited from IterableOnceOps[Long, Iterator, Iterator[Long]]

Inherited from IterableOnce[Long]

Inherited from AnyRef

Inherited from Any

Ungrouped