Skip to content

GitLab

  • Menu
    • Projects Groups Snippets
      Help
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • L lab08
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • cs2-19wi
  • lab08
  • Merge requests
  • !1

An error occurred while fetching the assigned milestone of the selected merge_request.
Open
Created 6 years ago by Kelsi M. Riley@krileyDeveloper
  • Report abuse
Report abuse

Override the equals method of the Point class

  • Overview 0
  • Commits 1
  • Pipelines 1
  • Changes 1
  • You're only seeing other activity in the feed. To add a comment, switch to one of the following options.
Please register or sign in to reply
Compare
  • master (HEAD)

and
  • latest version
    be161a59
    1 commit, 6 years ago

1 file
+ 8
- 0

    Preferences

    File browser
    Compare changes
src/edu/caltech/cs2/lab08/Point.java
+ 8
- 0
  • View file @ f84c949c

  • Edit in single-file editor

  • Edit in Web IDE


Show all unchanged lines Show 20 lines
Point p = (Point) o;
Point p = (Point) o;
return (this.x == p.x && this.y == p.y);
return (this.x == p.x && this.y == p.y);
}
}
 
 
@Override
 
public boolean equals(Object o) {
 
if (o instanceof Point) {
 
return isEqual((Point) o);
 
}
 
return false;
 
}
}
}
0 Assignees
None
Assign to
0 Reviewers
None
Request review from
Milestone
No milestone
None
None
Time tracking
No estimate or time spent
Labels
0
None
0
None
    Assign labels
  • Manage project labels

Lock merge request
Unlocked
0
0 participants
Reference:
Source branch: kriley

Menu

Projects Groups Snippets
Help