Top Description Fields Constructors Methods
org.postgresql.util

public final Class IntList

extends Object
Class Inheritance
Imports
java.util.Arrays

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.

Field Summary

Modifier and TypeField and Description
private static final int[]
private int[]
private int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
add(int i)

public void
private void
ensureCapacity(int size)

public int
get(int i)

public int
size()

public int[]

Returns:

an array containing all the elements in this list
toArray
()

Returns an array containing all the elements in this list.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

EMPTY_INT_ARRAYback to summary
private static final int[] EMPTY_INT_ARRAY
intsback to summary
private int[] ints
sizeback to summary
private int size

Constructor Detail

IntListback to summary
public IntList()

Method Detail

addback to summary
public void add(int i)
clearback to summary
public void clear()
ensureCapacityback to summary
private void ensureCapacity(int size)
getback to summary
public int get(int i)
sizeback to summary
public int size()
toArrayback to summary
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:int[]

an array containing all the elements in this list

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override