src/main/java/seedu/address/model/modelGeneric/UniqueList.java
public void add(K toAdd) {
        requireNonNull(toAdd);
        if (contains(toAdd)) {
            throw toAdd.getDuplicateException();
        }
        internalList.add(toAdd);
    }
/**
     * Adds an object to the list.
     * The object must not already exist in the list.
     */
Adds an object to the list.
The object must not already exist in the list.
Adds an object to the list . The object must not already exist in the list .
public void add(K toAdd) {
        requireNonNull(toAdd);
        if (contains(toAdd)) {
            throw toAdd.getDuplicateException();
        }
        internalList.add(toAdd);
    }
public void add ( K toAdd ) { requireNonNull ( toAdd ) ; if ( contains ( toAdd ) ) { throw toAdd . getDuplicateException ( ) ; } internalList . add ( toAdd ) ; }
Adds an object to the list.
Adds an object to the list .