public class

IntList

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.util.collect.IntList

Class Overview

A memory-efficient list of int primitives. Additions, retrieval, updates are supported. Deletes and insertions are not supported.

This class is not thread-safe.

Note: hashCode() and equals(Object) are not overridden.

Summary

Public Constructors
IntList()
Create a list with an initial capacity of 16 and bucket capacity of 65,536.
IntList(int initialCapacity, int bucketCapacity)
Public Methods
void add(int val)
void clear()
int get(int index)
boolean isEmpty()
void set(int index, int val)
int size()
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public IntList ()

Create a list with an initial capacity of 16 and bucket capacity of 65,536.

public IntList (int initialCapacity, int bucketCapacity)

Public Methods

public void add (int val)

public void clear ()

public int get (int index)

public boolean isEmpty ()

public void set (int index, int val)

public int size ()

public String toString ()