/
okz
/
itmo-java-lab5
Обзор
Документация
Войти
/
okz
/
itmo-java-lab5
Код
Запросы
0
Задачи
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/server/model/DragonHead.java
31 строка
736 B
knyazhe
чето поменял в CommandManager и TerminalManager
25 май 2024, 02:27
25 май 2024, 02:27
2c035c9
Код
Авторство
О чём код?
package server.model; import java.util.Objects; public class DragonHead { private Long toothCount; //Поле может быть null public DragonHead(Long toothCount) { this.toothCount = toothCount; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; DragonHead that = (DragonHead) o; return Objects.equals(toothCount, that.toothCount); } @Override public int hashCode() { return Objects.hashCode(toothCount); } @Override public String toString() { return "DragonHead{" + "toothCount=" + toothCount + '}'; } }