Package one.microstream.entity
Interface Entity
- All Known Subinterfaces:
Address,Animal,Entity.Accessible,Human,ImmutableEntity,Pet
- All Known Implementing Classes:
AddressData,AddressEntity,AnimalData,AnimalEntity,Entity.AbstractAccessible,EntityData,EntityLayer,EntityLayerIdentity,EntityLayerLogging,EntityLayerVersioning,HumanData,HumanEntity,PetData,PetEntity
public interface Entity
A mutable entity. Mutations of the entity's data only happen by providing another instance of that entity
that contains the desired new data.
, FH
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classEntity.AbstractAccessiblePrimary means to convenience-hide framework-internal methods from the user entity's public APIstatic interfaceEntity.AccessibleFallback means to convenience-hide framework-internal methods from the user entity's public API for classes that cannot extendEntity.AbstractAccessiblefor whatever reasonstatic interfaceEntity.Creator<E extends Entity,C extends Entity.Creator<E,C>>static classEntity.Staticstatic interfaceEntity.Updater<E extends Entity,U extends Entity.Updater<E,U>> -
Method Summary
Modifier and Type Method Description static <E extends Entity>
Edata(E instance)static <E extends Entity>
Eidentity(E instance)default booleanisSameIdentity(Entity other)static XGettingList<Entity>layers(Entity entity)static <E> EsearchLayer(Entity entity, Class<E> type)static <E extends Entity>
booleanupdateData(E entity, E data)default voidvalidateIdentity(Entity newData)