- Enclosing interface:
Entity
public static sealed interface Entity.Copy
Provides ways to create copies of an entity instance.
mutable()returns a mutable copybuilder()returns aEntity.Builderinstance initialized with the values of the entity being copied
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()Returns a newEntity.Builderinstance initialized with the values and original values from this entity.mutable()Returns a mutable copy of this entity.
-
Method Details
-
mutable
Entity mutable()Returns a mutable copy of this entity.- Returns:
- a mutable copy of this entity
-
builder
Entity.Builder builder()Returns a newEntity.Builderinstance initialized with the values and original values from this entity.- Returns:
- a
Entity.Builderinstance.
-