
com.evento.common.modeling.state.AggregateState Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of evento-common Show documentation
Show all versions of evento-common Show documentation
Common Library of Object and Algorithms for Evento Framework
The newest version!
package com.evento.common.modeling.state;
import java.io.Serializable;
/**
* The AggregateState class represents the state of an aggregate.
* It provides the functionality to mark the state as deleted.
*/
public abstract class AggregateState implements Serializable {
private boolean deleted = false;
/**
* Determines whether the aggregate state is marked as deleted.
*
* @return {@code true} if the aggregate state is marked as deleted, {@code false} otherwise.
*/
public boolean isDeleted() {
return deleted;
}
/**
* Sets the deleted flag of the aggregate state.
*
* @param deleted {@code true} to mark the aggregate state as deleted, {@code false} otherwise.
*/
public void setDeleted(boolean deleted) {
this.deleted = deleted;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy