nl.vpro.domain.api.DateRangeMatcherList 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.Singular;
import java.time.Instant;
import java.util.*;
import java.util.function.Predicate;
import javax.validation.Valid;
import javax.xml.bind.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import nl.vpro.domain.api.jackson.DateRangeMatcherListJson;
/**
* @author Michiel Meeuwissen
* @since 3.0
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "dateRangeMatcherListType")
@JsonSerialize(using = DateRangeMatcherListJson.Serializer.class)
@JsonDeserialize(using = DateRangeMatcherListJson.Deserializer.class)
public class DateRangeMatcherList extends MatcherList implements Predicate {
@XmlElement(name = "matcher")
@Valid
protected List matchers = new ArrayList<>();
public DateRangeMatcherList() {
}
@lombok.Builder
public DateRangeMatcherList(@Singular List values, Match match) {
super(match);
this.matchers = values;
}
public DateRangeMatcherList(DateRangeMatcher... values) {
super(DEFAULT_MATCH);
this.matchers = Arrays.asList(values);
}
public DateRangeMatcherList(Match match, DateRangeMatcher... values) {
super(match);
this.matchers = Arrays.asList(values);
}
@Override
public List asList() {
return matchers;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy