src/main/java/seedu/address/model/modelStaff/Staff.java
@Override
    public boolean weakEquals(ModelObject otherStaff) {
        if (otherStaff == this) {
            return true;
        }
        if (!(otherStaff instanceof Staff)) {
            return false;
        }
        Staff otherStaffCast = (Staff) otherStaff;
        return otherStaffCast.getName().equals(getName())
                && otherStaffCast.getPhone().equals(getPhone())
                && otherStaffCast.getEmail().equals(getEmail())
                && otherStaffCast.getAddress().equals(getAddress());
    }
/**
     * Compare if both staffs have the same name and at lest one other identity field
     * that is the same.
     * This defines a weaker notion of equality between two teachers.
     *
     * @return true if both staffs of the same name have at least another similar identity field
     * that is the same, false otherwise.
     */
Compare if both staffs have the same name and at lest one other identity field
that is the same.
This defines a weaker notion of equality between two teachers.

@return true if both staffs of the same name have at least another similar identity field
that is the same, false otherwise.
Compare if both staffs have the same name and at lest one other identity field that is the same . This defines a weaker notion of equality between two teachers . @return true if both staffs of the same name have at least another similar identity field that is the same false otherwise .
@Override
    public boolean weakEquals(ModelObject otherStaff) {
        if (otherStaff == this) {
            return true;
        }
        if (!(otherStaff instanceof Staff)) {
            return false;
        }
        Staff otherStaffCast = (Staff) otherStaff;
        return otherStaffCast.getName().equals(getName())
                && otherStaffCast.getPhone().equals(getPhone())
                && otherStaffCast.getEmail().equals(getEmail())
                && otherStaffCast.getAddress().equals(getAddress());
    }
@ Override public boolean weakEquals ( ModelObject otherStaff ) { if ( otherStaff == this ) { return true ; } if ( ! ( otherStaff instanceof Staff ) ) { return false ; } Staff otherStaffCast = ( Staff ) otherStaff ; return otherStaffCast . getName ( ) . equals ( getName ( ) ) && otherStaffCast . getPhone ( ) . equals ( getPhone ( ) ) && otherStaffCast . getEmail ( ) . equals ( getEmail ( ) ) && otherStaffCast . getAddress ( ) . equals ( getAddress ( ) ) ; }
Compare if both staffs have the same name and at lest one other identity field
 that is the same.
Compare if both staffs have the same name and at lest one other identity field that is the same .