Package com.opencqrs.esdb.client
Record Class Precondition.SubjectIsPopulated
java.lang.Object
java.lang.Record
com.opencqrs.esdb.client.Precondition.SubjectIsPopulated
- Record Components:
subject- the path to the subject that needs to be populated
- All Implemented Interfaces:
Precondition
- Enclosing interface:
Precondition
public static record Precondition.SubjectIsPopulated(@NotBlank String subject)
extends Record
implements Precondition
A precondition stating the given subject must already exist within the event store, that is at least one event
must have been published for that subject. This precondition is not violated by recursive subjects, that is
subjects that are stored within a hierarchy underneath the given one.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.opencqrs.esdb.client.Precondition
Precondition.EventQlQueryIsTrue, Precondition.SubjectIsOnEventId, Precondition.SubjectIsPopulated, Precondition.SubjectIsPristine -
Constructor Summary
ConstructorsConstructorDescriptionSubjectIsPopulated(@NotBlank String subject) Creates an instance of aSubjectIsPopulatedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotBlank Stringsubject()Returns the value of thesubjectrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SubjectIsPopulated
Creates an instance of aSubjectIsPopulatedrecord class.- Parameters:
subject- the value for thesubjectrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
subject
Returns the value of thesubjectrecord component.- Returns:
- the value of the
subjectrecord component
-