public class EqualRevisionPredicate extends Object implements Predicate<DomainEventData<?>>
DomainEventData
instances that have a revision 'equal' to the
revision of the class is has serialized data for. The RevisionResolver
is used to resolve the revision
of the Class represented by the DomainEventData
.Constructor and Description |
---|
EqualRevisionPredicate(RevisionResolver resolver,
Serializer serializer)
Initializes the Predicate with given
resolver to resolve revision of the class represented by the
serialized data. |
public EqualRevisionPredicate(RevisionResolver resolver, Serializer serializer)
resolver
to resolve revision of the class represented by the
serialized data.resolver
- Resolver of type RevisionResolver
to resolve the
revision of aggregate corresponding to the snapshotserializer
- The serializer used to read the payload data, in order to resolve a classpublic boolean test(DomainEventData<?> snapshot)
test
in interface Predicate<DomainEventData<?>>
Copyright © 2010–2023. All rights reserved.