29 lines
740 B
Java
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);
|
|
}
|
|
}
|