org.spincast.website.models.NewsEntry Maven / Gradle / Ivy
                 Go to download
                
        
                    Show more of this group  Show more artifacts with this name
Show all versions of spincast-website Show documentation
                Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
                
            package org.spincast.website.models;
/**
 * Spincast news entry implementation.
 */
public class NewsEntry implements INewsEntry {
    private final long id;
    private final String publishedDateISO;
    private final String title;
    private final String description;
    /**
     * Constructor
     */
    public NewsEntry(long id, String publishedDateISO, String title, String description) {
        this.id = id;
        this.publishedDateISO = publishedDateISO;
        this.title = title;
        this.description = description;
    }
    @Override
    public long getId() {
        return this.id;
    }
    @Override
    public String getPublishedDate() {
        return this.publishedDateISO;
    }
    @Override
    public String getTitle() {
        return this.title;
    }
    @Override
    public String getDescription() {
        return this.description;
    }
    @Override
    public String toString() {
        return getPublishedDate() + " - " + getTitle();
    }
}
    © 2015 - 2025 Weber Informatics LLC | Privacy Policy