src/main/java/seedu/address/model/modelGeneric/UniqueList.java
public void addAtIndex(K toAdd, Integer idx) {
        requireAllNonNull(toAdd, idx);
        if (contains(toAdd)) {
            throw toAdd.getDuplicateException();
        }
        internalList.add(idx, toAdd);
    }
/**
     * Adds an object to the list at the exact index.
     * The Object must not already exist in the list.
     */
Adds an object to the list at the exact index.
The Object must not already exist in the list.
Adds an object to the list at the exact index . The Object must not already exist in the list .
public void addAtIndex(K toAdd, Integer idx) {
        requireAllNonNull(toAdd, idx);
        if (contains(toAdd)) {
            throw toAdd.getDuplicateException();
        }
        internalList.add(idx, toAdd);
    }
public void addAtIndex ( K toAdd , Integer idx ) { requireAllNonNull ( toAdd , idx ) ; if ( contains ( toAdd ) ) { throw toAdd . getDuplicateException ( ) ; } internalList . add ( idx , toAdd ) ; }
Adds an object to the list at the exact index.
Adds an object to the list at the exact index .