src/main/java/seedu/address/model/modelAssignment/Assignment.java
@Override
    public boolean weakEquals(ModelObject otherAssignment) {
        if (otherAssignment == this) {
            return true;
        }

        if (!(otherAssignment instanceof Assignment)) {
            return false;
        }
        Assignment otherAssignmentCast = (Assignment) otherAssignment;
        return otherAssignmentCast != null
                && otherAssignmentCast.getName().equals(getName())
                && otherAssignmentCast.getId().equals(getId());
    }
/**
     * Indicate whether both courses of the same name have at least one other identity field that is
     * the same. This defines a weaker notion of equality between two courses.
     *
     * @return true if there is another similar identity field other than name, false otherwise.
     */
Indicate whether both courses of the same name have at least one other identity field that is
the same. This defines a weaker notion of equality between two courses.

@return true if there is another similar identity field other than name, false otherwise.
Indicate whether both courses of the same name have at least one other identity field that is the same . This defines a weaker notion of equality between two courses . @return true if there is another similar identity field other than name false otherwise .
@Override
    public boolean weakEquals(ModelObject otherAssignment) {
        if (otherAssignment == this) {
            return true;
        }
        if (!(otherAssignment instanceof Assignment)) {
            return false;
        }
        Assignment otherAssignmentCast = (Assignment) otherAssignment;
        return otherAssignmentCast != null
                && otherAssignmentCast.getName().equals(getName())
                && otherAssignmentCast.getId().equals(getId());
    }
@ Override public boolean weakEquals ( ModelObject otherAssignment ) { if ( otherAssignment == this ) { return true ; } if ( ! ( otherAssignment instanceof Assignment ) ) { return false ; } Assignment otherAssignmentCast = ( Assignment ) otherAssignment ; return otherAssignmentCast != null && otherAssignmentCast . getName ( ) . equals ( getName ( ) ) && otherAssignmentCast . getId ( ) . equals ( getId ( ) ) ; }
Indicate whether both courses of the same name have at least one other identity field that is
 the same.
Indicate whether both courses of the same name have at least one other identity field that is the same .