FileDocCategorySizeDatePackage
IntList.javaAPI DocJava SE 5 API3529Fri Aug 26 14:55:26 BST 2005com.sun.org.apache.bcel.internal.verifier.statics

IntList

public class IntList extends Object
A small utility class representing a set of basic int values.
version
$Id: IntList.java,v 1.1.1.1 2001/10/29 20:00:34 jvanzyl Exp $
author
Enver Haase

Fields Summary
private ArrayList
theList
The int are stored as Integer objects here.
Constructors Summary
IntList()
This constructor creates an empty list.

		theList = new ArrayList();
	
Methods Summary
voidadd(int i)
Adds an element to the list.

		theList.add(new Integer(i));
	
booleancontains(int i)
Checks if the specified int is already in the list.

		Integer[] ints = new Integer[theList.size()];
		theList.toArray(ints);
		for (int j=0; j<ints.length; j++){
			if (i == ints[j].intValue()) return true;
		}
		return false;