liquibase.license.LicenseInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of liquibase-core Show documentation
Show all versions of liquibase-core Show documentation
Liquibase is a tool for managing and executing database changes.
The newest version!
package liquibase.license;
import lombok.Getter;
import lombok.Setter;
import java.text.SimpleDateFormat;
import java.util.Date;
@Setter
@Getter
public class LicenseInfo {
private String issuedTo;
private Date expirationDate;
public LicenseInfo(String issuedTo, Date expirationDate) {
this.issuedTo = issuedTo;
this.expirationDate = expirationDate;
}
public String formatExpirationDate() {
if (expirationDate != null) {
SimpleDateFormat dateFormat = new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy");
return dateFormat.format(expirationDate);
} else {
return null;
}
}
}