package cs235.javaskills; /** Note to students: * JavaSkillsFactory is a class that will return the implementations of the * interfaces that are required for the project. Since we have this "factory" class, you are * free to name the implementation classes whatever you choose, just so long as you specify it * here in the factory. */ public class JavaSkillsFactory { /** * Creates, initializes, and returns a new object that implements the PairSet interface * from the given Pair objects. * * @param pairdata An array of Pair objects that will be added into the PairSet object. * @return a reference to the new PairSet object * @throws IllegalArgumentException if any pair in pairdata or it's members is invalid. */ public static PairSet createPairSet(Pair[] pairdata) { return null; } /** * Creates new object that implements the PairSet interface. * * @return a reference to the object that implements the PairSet interface. */ public static PairSet createEmptyPairSet() { // for example, return new PairSetImpl(); return null; } /** * Creates a new instance of the class that implements the Pair interface. * @param first Value to be placed as the 1st element of the new Pair object. * @param second Value be placed as the 2nd element of the new Pair object. * @return a new instance of the class that implements the Pair interface. * @throws IllegalArgumentException if either first or second are null. */ public static Pair createPair(Comparable first, Comparable second) { return null; } }