Package org.postgresql.util

# Class IntList

java.lang.Object
org.postgresql.util.IntList

public final class IntList extends Object
A specialized class to store a list of `int` values, so it does not need auto-boxing. Note: this is a driver-internal class, and it is not intended to be used outside the driver.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `IntList()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `add(int i)`
  `void`
  `clear()`
  `int`
  `get(int i)`
  `int`
  `size()`
  `int[]`
  `toArray()`
  Returns an array containing all the elements in this list.
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### IntList

    public IntList()

- ## Method Details

  - ### add

    public void add(int i)

  - ### size

    public int size()

  - ### get

    public int get(int i)

  - ### clear

    public void clear()

  - ### toArray

    public int[] toArray()
    Returns an array containing all the elements in this list. The modifications of the returned array will not affect this list.
    Returns:
      an array containing all the elements in this list

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`