Package it.unimi.di.prog2.h08
Class IntSets
java.lang.Object
it.unimi.di.prog2.h08.IntSets
A collection of methods for
IntSet
s.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic IntSet
getElements
(int[] a) Builds a set from an array of elements.
-
Constructor Details
-
IntSets
private IntSets()
-
-
Method Details
-
getElements
Builds a set from an array of elements.- Parameters:
a
- and array of integer elements.- Returns:
- the set containing an entry for every distinct element of
a
. - Throws:
NullPointerException
- ifa
isnull
.
-