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

jfxtras.icalendarfx.components.VLastModified Maven / Gradle / Ivy

There is a newer version: 17-r1
Show newest version
package jfxtras.icalendarfx.components;

import java.time.ZonedDateTime;

import jfxtras.icalendarfx.components.VComponent;
import jfxtras.icalendarfx.properties.component.change.LastModified;

public interface VLastModified extends VComponent
{
    /**
     * LAST-MODIFIED: Date-Time Last Modified, from RFC 5545 iCalendar 3.8.7.3 page 138
     * This property specifies the date and time that the information associated with
     * the calendar component was last revised.
     * 
     * The property value MUST be specified in the UTC time format.
     */
    LastModified getDateTimeLastModified();
    default void setDateTimeLastModified(String lastModified) { setDateTimeLastModified(LastModified.parse(lastModified)); }
    void setDateTimeLastModified(LastModified lastModified);
    default void setDateTimeLastModified(ZonedDateTime lastModified)
    {
        setDateTimeLastModified(new LastModified(lastModified));
    }
    default T withDateTimeLastModified(ZonedDateTime lastModified)
    {
        setDateTimeLastModified(lastModified);
        return (T) this;
    }
    default T withDateTimeLastModified(String lastModified)
    {
        setDateTimeLastModified(lastModified);
        return (T) this;
    }
    default T withDateTimeLastModified(LastModified lastModified)
    {
        setDateTimeLastModified(lastModified);
        return (T) this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy