src/main/java/seedu/address/model/modelGeneric/UniqueList.java
private boolean objectsAreUnique(List<K> objects) {
        for (int i = 0; i < objects.size() - 1; i++) {
            for (int j = i + 1; j < objects.size(); j++) {
                if (objects.get(i).weakEquals(objects.get(j))) {
                    return false;
                }
            }
        }
        return true;
    }
/**
     * Returns true if {@code courses} contains only unique courses.
     */
Returns true if  courses contains only unique courses.
Returns true if courses contains only unique courses .
private boolean objectsAreUnique(List<K> objects) {
        for (int i = 0; i < objects.size() - 1; i++) {
            for (int j = i + 1; j < objects.size(); j++) {
                if (objects.get(i).weakEquals(objects.get(j))) {
                    return false;
                }
            }
        }
        return true;
    }
private boolean objectsAreUnique ( List < K > objects ) { for ( int i = 0 ; i < objects . size ( ) - 1 ; i ++ ) { for ( int j = i + 1 ; j < objects . size ( ) ; j ++ ) { if ( objects . get ( i ) . weakEquals ( objects . get ( j ) ) ) { return false ; } } } return true ; }
Returns true if {@code courses} contains only unique courses.
Returns true if { @code courses } contains only unique courses .