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

liquibase.license.LicenseInfo Maven / Gradle / Ivy

There is a newer version: 4.30.0
Show newest version
package liquibase.license;

import java.text.SimpleDateFormat;
import java.util.Date;

public class LicenseInfo {
    private String issuedTo;
    private Date expirationDate;

    public LicenseInfo(String issuedTo, Date expirationDate) {
        this.issuedTo = issuedTo;
        this.expirationDate = expirationDate;
    }

    public String getIssuedTo() {
        return issuedTo;
    }

    public void setIssuedTo(String issuedTo) {
        this.issuedTo = issuedTo;
    }

    public Date getExpirationDate() {
        return expirationDate;
    }

    public void setExpirationDate(Date expirationDate) {
        this.expirationDate = expirationDate;
    }

    public String formatExpirationDate() {
        SimpleDateFormat dateFormat = new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy");
        return dateFormat.format(expirationDate);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy