Record Class PublicationQuery
java.lang.Object
java.lang.Record
zeroecho.pki.api.publication.PublicationQuery
- Record Components:
targetType- optional target type filterafter- optional lower bound for timebefore- optional upper bound for timesourceType- optional source-object type filter
public record PublicationQuery(Optional<PublicationTargetType> targetType, Optional<Instant> after, Optional<Instant> before, Optional<PublicationSourceType> sourceType)
extends Record
Query constraints for listing publication records.
-
Constructor Summary
ConstructorsConstructorDescriptionPublicationQuery(Optional<PublicationTargetType> targetType, Optional<Instant> after, Optional<Instant> before, Optional<PublicationSourceType> sourceType) Creates a publication query. -
Method Summary
Modifier and TypeMethodDescriptionafter()Returns the value of theafterrecord component.before()Returns the value of thebeforerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thesourceTyperecord component.Returns the value of thetargetTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PublicationQuery
public PublicationQuery(Optional<PublicationTargetType> targetType, Optional<Instant> after, Optional<Instant> before, Optional<PublicationSourceType> sourceType) Creates a publication query.- Throws:
IllegalArgumentException- if any optional container is null
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
targetType
Returns the value of thetargetTyperecord component.- Returns:
- the value of the
targetTyperecord component
-
after
-
before
-
sourceType
Returns the value of thesourceTyperecord component.- Returns:
- the value of the
sourceTyperecord component
-