Packages

final class IntBuffer extends ArrayBufferLike[Int]

Growable, mutable array of integers. Unlike ArrayBuffer allows to address elements outside the range.

Linear Supertypes
ArrayBufferLike[Int], Buffer[Int], (Int) ⇒ Int, AnyRef, Any
Ordering
  1. Grouped
  2. Alphabetic
  3. By Inheritance
Inherited
  1. IntBuffer
  2. ArrayBufferLike
  3. Buffer
  4. Function1
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new IntBuffer(initialSize: Int = 8)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def andThen[A](g: (Int) ⇒ A): (Int) ⇒ A
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  5. final def append(value: Int): IntBuffer.this.type

    Appends value at the end of buffer and advances topIndex.

    Appends value at the end of buffer and advances topIndex.

    Definition Classes
    Buffer
    Annotations
    @inline()
  6. final def appendArray(values: Array[Int]): IntBuffer.this.type

    Appends values from the given array at the end of buffer and advances topIndex.

    Appends values from the given array at the end of buffer and advances topIndex.

    Definition Classes
    Buffer
    Annotations
    @inline()
  7. final def appendFromIterator(iterator: Iterator[Int]): IntBuffer.this.type

    Appends values from the given iterator at the end of buffer and advances topIndex.

    Appends values from the given iterator at the end of buffer and advances topIndex.

    Definition Classes
    Buffer
  8. final def appendIterable(iterable: Iterable[Int]): IntBuffer.this.type

    Appends values from the given iterable at the end of buffer and advances topIndex.

    Appends values from the given iterable at the end of buffer and advances topIndex.

    Definition Classes
    Buffer
    Annotations
    @inline()
  9. final def appendSequence(values: IndexedSeq[Int]): IntBuffer.this.type

    Appends values from the given sequence at the end of buffer and advances topIndex.

    Appends values from the given sequence at the end of buffer and advances topIndex.

    Definition Classes
    Buffer
    Annotations
    @inline()
  10. def apply(index: Int): Int

    Returns value at the given index or 0 if out of scope.

    Returns value at the given index or 0 if out of scope.

    Definition Classes
    IntBufferBuffer → Function1
    Annotations
    @inline()
  11. def array: Array[Int]
    Attributes
    protected
    Definition Classes
    IntBufferArrayBufferLike
  12. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  13. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  14. def compose[A](g: (A) ⇒ Int): (A) ⇒ Int
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  15. def copyFrom(index: Int, slice: IntSlice): Unit

    Copy values directly from IntSlice's array into the buffer array.

  16. def ensureIndex(index: Int): Unit

    Ensures buffer capacity to address provided index.

    Ensures buffer capacity to address provided index.

    Attributes
    protected
    Definition Classes
    IntBufferBuffer
  17. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  19. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  21. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. def increment(index: Int): IntBuffer.this.type

    Increments the value at index.s

  23. final def insertArray(index: Int, sourceIndex: Int, insertLength: Int, sourceArray: Array[Int]): IntBuffer.this.type

    Shift current content to the right starting from indexat the insertLength distance, and copies array chunk into the gap.

    Shift current content to the right starting from indexat the insertLength distance, and copies array chunk into the gap. Sets topIndex to be at least at the end of the new chunk of values.

    Definition Classes
    ArrayBufferLikeBuffer
  24. final def insertFromIterator(index: Int, insertLength: Int, iterator: Iterator[Int]): IntBuffer.this.type

    Shift current content to the right starting from indexat the insertLength distance, and copies iterated values into the gap.

    Shift current content to the right starting from indexat the insertLength distance, and copies iterated values into the gap. Sets topIndex to be at least at the end of the new chunk of values.

    Definition Classes
    Buffer
  25. final def insertValues(index: Int, sourceIndex: Int, insertLength: Int, source: (Int) ⇒ Int): IntBuffer.this.type

    Shift current content to the right starting from indexat the insertLength distance, iterates over the source indexes and copies values into the gap.

    Shift current content to the right starting from indexat the insertLength distance, iterates over the source indexes and copies values into the gap. Sets topIndex to be at least at the end of the new chunk of values.

    Definition Classes
    Buffer
  26. final def isEmpty: Boolean

    Is the accessible part of the buffer empty?

    Is the accessible part of the buffer empty?

    Definition Classes
    Buffer
    Annotations
    @inline()
  27. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  28. final def length: Int

    Length of the accessible part of the buffer.

    Length of the accessible part of the buffer.

    Definition Classes
    Buffer
  29. def modify(index: Int, f: (Int) ⇒ Int): IntBuffer.this.type

    Updates value at the provided index using the function.

    Updates value at the provided index using the function. Index must fall within range [0,length).

    Definition Classes
    Buffer
    Exceptions thrown

    IndexOutOfBoundsException if index lower than zero.

  30. def modifyRange(fromIndex: Int, toIndex: Int, f: (Int) ⇒ Int): IntBuffer.this.type

    Updates values in the range [startIndex,toIndex)^^[0,length) using the function. One of {startIndex,toIndex} must fall within range [0,length).

    Updates values in the range [startIndex,toIndex)^^[0,length) using the function. One of {startIndex,toIndex} must fall within range [0,length).

    Definition Classes
    Buffer
    Exceptions thrown

    IndexOutOfBoundsException if index lower than zero.

  31. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  32. final def nonEmpty: Boolean

    Is the accessible part of the buffer non empty?

    Is the accessible part of the buffer non empty?

    Definition Classes
    Buffer
    Annotations
    @inline()
  33. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  34. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  35. final def peek: Int

    Returns value at the topIndex.

    Returns value at the topIndex.

    Definition Classes
    Buffer
  36. final def pop: Int

    Returns value at the topIndex, and moves topIndex back.

    Returns value at the topIndex, and moves topIndex back.

    Definition Classes
    Buffer
  37. final def push(value: Int): IntBuffer.this.type

    Appends value to the topIndex.

    Appends value to the topIndex. Same as append

    Definition Classes
    Buffer
    Annotations
    @inline()
  38. final def reset: Int

    Resets buffer, sets topIndex to -1.

    Resets buffer, sets topIndex to -1. Does not clear existing values.

    returns

    previous topIndex

    Definition Classes
    Buffer
  39. final def set(index: Int): IntBuffer.this.type

    Sets topIndex value.

    Sets topIndex value.

    Definition Classes
    Buffer
  40. final def shiftLeft(index: Int, distance: Int): IntBuffer.this.type

    Moves values [index, length) left to [index-distance, length - distance).

    Moves values [index, length) left to [index-distance, length - distance). Effectively removes range (index-distance, index]. Ignores negative distance. Moves topIndex if affected.

    Definition Classes
    ArrayBufferLikeBuffer
  41. final def shiftRight(index: Int, distance: Int): IntBuffer.this.type

    Moves values [index, length) right to [index+distance, length + distance).

    Moves values [index, length) right to [index+distance, length + distance). Effectively creates a new range [index, index+distance). Ignores negative distance. Does not clear existing values inside [index, index+distance). Moves topIndex if affected.

    Definition Classes
    ArrayBufferLikeBuffer
  42. final def store(value: Int): IntBuffer.this.type

    Replace value at the topIndex.

    Replace value at the topIndex.

    Definition Classes
    Buffer
  43. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  44. def toArray: Array[Int]

    Returns copy of the underlying array trimmed to length.

    Returns copy of the underlying array trimmed to length.

    Definition Classes
    IntBufferBuffer
  45. def toSlice: IntSlice

    Wraps underlying array as a Slice.

    Wraps underlying array as a Slice.

    Definition Classes
    IntBufferBuffer
  46. final def toString(): String
    Definition Classes
    ArrayBufferLike → Function1 → AnyRef → Any
  47. final def top: Int

    Returns topIndex value.

    Returns topIndex value.

    Definition Classes
    Buffer
  48. final def update(index: Int, value: Int): IntBuffer.this.type

    Updates value at the provided index.

    Updates value at the provided index. Alters underlying array if necessary.

    Definition Classes
    ArrayBufferLikeBuffer
    Exceptions thrown

    IndexOutOfBoundsException if index lower than zero.

  49. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  50. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  51. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from ArrayBufferLike[Int]

Inherited from Buffer[Int]

Inherited from (Int) ⇒ Int

Inherited from AnyRef

Inherited from Any

Abstract

Stack Ops

Properties

Update

Append

Insert

Shift

Limit

Ungrouped