Added a constructor that takes an int[] of initial values.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@1150 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
ray
2003-06-24 21:29:41 +00:00
parent 29da1d07fa
commit 91f729b9a0
@@ -1,5 +1,5 @@
// //
// $Id: ArrayIntSet.java,v 1.12 2003/03/04 19:05:43 mdb Exp $ // $Id: ArrayIntSet.java,v 1.13 2003/06/24 21:29:41 ray Exp $
// //
// samskivert library - useful routines for java programs // samskivert library - useful routines for java programs
// Copyright (C) 2001 Michael Bayne // Copyright (C) 2001 Michael Bayne
@@ -35,6 +35,14 @@ import java.util.NoSuchElementException;
public class ArrayIntSet extends AbstractSet public class ArrayIntSet extends AbstractSet
implements IntSet, Cloneable, Serializable implements IntSet, Cloneable, Serializable
{ {
/**
* Construct an ArrayIntSet with the specified starting values.
*/
public ArrayIntSet (int[] values)
{
add(values);
}
// documentation inherited from interface // documentation inherited from interface
public int size () public int size ()
{ {