All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.spincast.website.models.NewsEntry Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version
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 - 2024 Weber Informatics LLC | Privacy Policy