Interface Entity.Copy

Enclosing interface:
Entity

public static interface Entity.Copy
Provides ways to create copies of an entity instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a new Entity.Builder instance initialized with the values and original values from this entity.
    Returns a mutable copy of this entity.
    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 new Entity.Builder instance initialized with the values and original values from this entity.
      Returns:
      a Entity.Builder instance.