mirror of
https://github.com/Ellpeck/PrettyPipes.git
synced 2024-11-22 19:58:35 +01:00
Revert "network lock equality, for the future"
This reverts commit 58558781
This commit is contained in:
parent
58558781eb
commit
88544368eb
1 changed files with 0 additions and 16 deletions
|
@ -1,7 +1,5 @@
|
||||||
package de.ellpeck.prettypipes.network;
|
package de.ellpeck.prettypipes.network;
|
||||||
|
|
||||||
import java.util.Objects;
|
|
||||||
|
|
||||||
public class NetworkLock {
|
public class NetworkLock {
|
||||||
|
|
||||||
public final NetworkLocation location;
|
public final NetworkLocation location;
|
||||||
|
@ -13,18 +11,4 @@ public class NetworkLock {
|
||||||
this.slot = slot;
|
this.slot = slot;
|
||||||
this.amount = amount;
|
this.amount = amount;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean equals(Object o) {
|
|
||||||
if (o instanceof NetworkLock) {
|
|
||||||
NetworkLock that = (NetworkLock) o;
|
|
||||||
return this.slot == that.slot && this.amount == that.amount && this.location.equals(that.location);
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public int hashCode() {
|
|
||||||
return Objects.hash(this.location, this.slot, this.amount);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue