Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
cs2-19wi
project07
Commits
63be1504
Commit
63be1504
authored
6 years ago
by
Adam Blank
Browse files
Options
Download
Email Patches
Plain Diff
Update Location.java
parent
40ddf354
master
No related merge requests found
Pipeline
#8801
canceled with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/edu/caltech/cs2/datastructures/Location.java
+4
-1
src/edu/caltech/cs2/datastructures/Location.java
with
4 additions
and
1 deletion
+4
-1
src/edu/caltech/cs2/datastructures/Location.java
View file @
63be1504
...
...
@@ -87,6 +87,7 @@ public class Location {
return
new
Location
(
0
,
lat1
,
lon1
,
null
,
null
,
null
,
null
,
"building"
).
getDistance
(
lat2
,
lon2
);
}
@Override
public
String
toString
()
{
StringBuilder
s
=
new
StringBuilder
();
s
.
append
(
"{"
);
...
...
@@ -112,11 +113,13 @@ public class Location {
s
.
append
(
"}"
);
return
s
.
toString
();
}
@Override
public
int
hashCode
()
{
return
Long
.
hashCode
(
this
.
id
);
}
@Override
public
boolean
equals
(
Object
o
)
{
if
(!(
o
instanceof
Location
))
{
return
false
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help