partState

protected P partState<P extends EntityState>(Class<P> partStateClass)

Obtains a state of another AggregatePart by its class.

Return

the state of the part or a default state if the state was not found

Parameters

partStateClass

the class of the state of the part

<P>

the type of the part state

Throws

if a repository was not found, or the ID type of the part state does not match the ID type of the root