Package de.xima.fc.e2e.common.query.data
Class EntityReference.Builder
- java.lang.Object
-
- de.xima.fc.e2e.common.query.data.EntityReference.Builder
-
- Enclosing class:
- EntityReference
public static final class EntityReference.Builder extends Object
Simple builder for anEntityReference.- Since:
- 8.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EntityReferencebuild()EntityReference.Builderid(Long id)EntityReference.Buildername(String name)EntityReference.Builderuuid(UUID uuid)
-
-
-
Method Detail
-
build
public EntityReference build()
- Returns:
- A new entity reference with the current data.
-
id
public EntityReference.Builder id(Long id)
- Parameters:
id- The internal database ID of the entity.- Returns:
- This builder instance for chaining method calls.
-
name
public EntityReference.Builder name(String name)
- Parameters:
name- The name of the entity, if the entity does have a name.- Returns:
- This builder instance for chaining method calls.
-
uuid
public EntityReference.Builder uuid(UUID uuid)
- Parameters:
uuid- The UUID of the entity, if the entity does have a UUID.- Returns:
- This builder instance for chaining method calls.
-
-