This commit is contained in:
parent
42268eae94
commit
e55bd1c676
1 changed files with 15 additions and 1 deletions
|
@ -6,10 +6,24 @@
|
||||||
|
|
||||||
package eu.m724.tweaks.updater.cache;
|
package eu.m724.tweaks.updater.cache;
|
||||||
|
|
||||||
|
import java.util.Objects;
|
||||||
|
|
||||||
public record ResourceVersion(
|
public record ResourceVersion(
|
||||||
int resourceId,
|
int resourceId,
|
||||||
int page,
|
int page,
|
||||||
int updateId,
|
int updateId,
|
||||||
String label,
|
String label,
|
||||||
UpdateDescription description
|
UpdateDescription description
|
||||||
) { }
|
) {
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) return true;
|
||||||
|
if (!(o instanceof ResourceVersion that)) return false;
|
||||||
|
return updateId == that.updateId && resourceId == that.resourceId;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(resourceId, updateId);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue