/
okz
/
itmo-java-lab5
Обзор
Документация
Войти
/
okz
/
itmo-java-lab5
Код
Запросы
0
Задачи
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/server/model/MyCollection.java
24 строки
632 B
knyazhe
i change something
21 сен 2024, 03:22
21 сен 2024, 03:22
a769d98
Код
Авторство
О чём код?
package server.model; import client.typeadapters.LocalDateTimeTypeAdapter; import com.google.gson.annotations.JsonAdapter; import java.util.LinkedList; public class MyCollection extends LinkedList<Dragon> { @JsonAdapter(LocalDateTimeTypeAdapter.class) private final java.time.LocalDateTime initializationDate; public MyCollection() { super(); this.initializationDate = java.time.LocalDateTime.now(); } public java.time.LocalDateTime getInitializationDate() { return this.initializationDate; } public String getType(){ return this.getClass().getSimpleName(); } }