Class ImmutableEntity<T>
java.lang.Object
io.fluxcapacitor.javaclient.modeling.ImmutableEntity<T>
- All Implemented Interfaces:
Entity<T>
- Direct Known Subclasses:
ImmutableAggregateRoot
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.fluxcapacitor.javaclient.modeling.Entity
Entity.Validator<T,E extends Exception> -
Field Summary
Fields inherited from interface io.fluxcapacitor.javaclient.modeling.Entity
AGGREGATE_ID_METADATA_KEY, AGGREGATE_SN_METADATA_KEY, AGGREGATE_TYPE_METADATA_KEY, applying, loading -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(DeserializingMessage message) assertLegal(Object command) protected Collection<?>protected Collection<? extends ImmutableEntity<?>>get()type()update(UnaryOperator<T> function) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.fluxcapacitor.javaclient.modeling.Entity
aliases, allEntities, ancestorValue, apply, apply, apply, apply, assertAndApply, assertAndApply, assertAndApply, assertAndApply, assertThat, associations, dissociations, ensure, entities, getEntity, highestEventIndex, id, idProperty, ifPresent, isEmpty, isPresent, isRoot, lastEventId, lastEventIndex, mapIfPresent, parent, playBackToCondition, playBackToEvent, possibleTargets, previous, relationships, root, rootAnnotation, sequenceNumber, timestamp, withEventIndex, withSequenceNumber
-
Constructor Details
-
ImmutableEntity
public ImmutableEntity()
-
-
Method Details
-
type
-
withType
-
get
-
update
-
apply
-
assertLegal
- Specified by:
assertLegalin interfaceEntity<T>- Throws:
E extends Exception
-
apply
-
computeEntities
-
computeAliases
-