nl.vpro.domain.api.MediaSince Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api-domain Show documentation
Show all versions of api-domain Show documentation
Contains the objects used by the Frontend API, like forms and result objects
package nl.vpro.domain.api;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Data;
import java.time.Instant;
/**
* @author Michiel Meeuwissen
* @since 5.5
*/
@Data
@AllArgsConstructor(access = AccessLevel.PRIVATE)
@lombok.Builder
public class MediaSince {
private final Instant instant;
private final String mid;
static Instant instant(Instant explicit, MediaSince mediaSince) {
if (explicit != null) {
return explicit;
}
return mediaSince == null ? null : mediaSince.instant;
}
static String mid(String explicit, MediaSince mediaSince) {
if (explicit != null) {
return explicit;
}
return mediaSince == null ? null : mediaSince.mid;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy