fixes
This commit is contained in:
parent
683a8a8bf6
commit
0a6ba5cd6f
@ -55,7 +55,7 @@ public class Cabinet {
|
||||
if (!(o instanceof Cabinet))
|
||||
return false;
|
||||
Cabinet cabinet = (Cabinet) o;
|
||||
return Objects.equals(id, cabinet.id) && Objects.equals(this.number, cabinet.number);
|
||||
return Objects.equals(id, cabinet.id);
|
||||
}
|
||||
@Override
|
||||
public int hashCode() {
|
||||
|
@ -64,7 +64,7 @@ public class Computer {
|
||||
if (!(o instanceof Computer))
|
||||
return false;
|
||||
Computer computer = (Computer) o;
|
||||
return Objects.equals(id, computer.id) && Objects.equals(this.modelName, computer.modelName) && Objects.equals(this.monitor, computer.monitor) && Objects.equals(this.cabinet, computer.cabinet);
|
||||
return Objects.equals(id, computer.id);
|
||||
}
|
||||
@Override
|
||||
public int hashCode() {
|
||||
|
@ -35,7 +35,7 @@ public class Monitor {
|
||||
if (!(o instanceof Monitor))
|
||||
return false;
|
||||
Monitor monitor = (Monitor) o;
|
||||
return Objects.equals(id, monitor.id) && Objects.equals(this.modelName, monitor.modelName);
|
||||
return Objects.equals(id, monitor.id);
|
||||
}
|
||||
@Override
|
||||
public int hashCode() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user