Class IntSets

java.lang.Object
it.unimi.di.prog2.h08.IntSets

public class IntSets extends Object
A collection of methods for IntSets.
  • Constructor Details

    • IntSets

      private IntSets()
  • Method Details

    • getElements

      public static IntSet getElements(int[] a) throws NullPointerException
      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 - if a is null.