/
comavp
/
client-server-information-system
Обзор
Документация
Войти
/
comavp
/
client-server-information-system
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Server/src/model/Track.java
57 строк
1 KB
Anton
first commit
31 янв 2019, 18:02
31 янв 2019, 18:02
67619a3
Код
Авторство
О чём код?
package model; import org.jetbrains.annotations.NotNull; import java.io.Serializable; public class Track implements Serializable { private String title; private String artist; private String album; private int length; public Track(String title, String artist, String album, int length) { this.title = title; this.artist = artist; this.album = album; this.length = length; } public void setTitle(String title) { this.title = title; } public String getTitle() { return title; } public void setArtist(String artist) { this.artist = artist; } public String getArtist() { return artist; } public String getAlbum() { return album; } public void setAlbum(String album) { this.album = album; } public int getLength() { return length; } public void setLength(int length) { this.length = length; } public boolean equals(Object o) { return (this.title.equals(((Track)o).getTitle()) && this.artist.equals(((Track)o).getArtist()) && this.album.equals(((Track)o).getAlbum()) && this.length == ((Track)o).getLength()); } }