Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Samuel Dudík
PA165 Winery Management System
Commits
f01838de
Commit
f01838de
authored
Mar 25, 2022
by
Michaela Korenková
Browse files
changed equals
parent
0f3d2dbe
Changes
1
Hide whitespace changes
Inline
Side-by-side
winery/src/main/java/cz/muni/fi/pa165/winery/persistence/entities/WineBottle.java
View file @
f01838de
...
...
@@ -54,11 +54,11 @@ public class WineBottle extends EntityBase{
if
(
this
==
o
)
return
true
;
if
(!(
o
instanceof
WineBottle
))
return
false
;
WineBottle
that
=
(
WineBottle
)
o
;
return
getName
().
equals
(
that
.
getName
())
&&
getVolume
().
equals
(
that
.
getVolume
())
&&
getType
().
equals
(
that
.
getType
())
&&
getGrape
().
equals
(
that
.
getGrape
())
;
return
getName
().
equals
(
that
.
getName
())
&&
getVolume
().
equals
(
that
.
getVolume
())
&&
getType
().
equals
(
that
.
getType
());
}
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
getName
(),
getVolume
(),
getType
()
,
getGrape
()
);
return
Objects
.
hash
(
getName
(),
getVolume
(),
getType
());
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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