tweaks724/src/main/java/eu/m724/tweaks/updater/object/ResourceVersion.java
Minecon724 e5d2938845
Some checks failed
/ build (push) Has been cancelled
Refactor updater
2025-01-20 08:10:38 +01:00

29 lines
740 B
Java

/*
* Copyright (C) 2025 Minecon724
* Tweaks724 is licensed under the GNU General Public License. See the LICENSE.md file
* in the project root for the full license text.
*/
package eu.m724.tweaks.updater.object;
import java.util.Objects;
public record ResourceVersion(
int resourceId,
int page,
int updateId,
String label,
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);
}
}