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