All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.evento.common.modeling.state.SerializedAggregateState Maven / Gradle / Ivy

The newest version!
package com.evento.common.modeling.state;

import com.evento.common.modeling.common.SerializedObject;

/**
 * Represents a serialized aggregate state that can be converted to and from a string representation.
 * The serialized aggregate state is a subclass of the SerializedObject class.
 *
 * @param  the type of the serialized aggregate state, which must extend the AggregateState class
 */
public class SerializedAggregateState extends SerializedObject {
	/**
	 * Creates a new SerializedAggregateState object with the specified object.
	 *
	 * @param object the object to be serialized
     */
	public SerializedAggregateState(T object) {
		super(object);
	}

	/**
	 * Represents a serialized aggregate state that can be converted to and from a string representation.
	 * The serialized aggregate state is a subclass of the SerializedObject class.
	 *
     */
	public SerializedAggregateState() {
	}

	/**
	 * Retrieves the aggregate state from the serialized aggregate state.
	 *
	 * @return the aggregate state
	 */
	public T getAggregateState() {
		return getObject();
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy