@ExperimentalApi
public interface RestEntityFactory
Modifier and Type | Method and Description |
---|---|
default <T> RestEntity<T> |
create(T entity)
Creates a RestEntity that wraps the provided entity.
|
<T> RestEntity<T> |
create(T entity,
boolean graphql)
Creates a RestEntity that wraps the provided entity.
|
default <T> RestEntity<T> create(T entity)
Any fields referenced by the entity that have the RestEnrichable annotation will also be converted to RestEntities.
Fields annotated with JsonProperty that implement Iterable will have their contents converted to RestEntities if the content class has the RestEnrichable annotation. Likewise Maps will have their values converted.
entity
- The entity to wrap<T> RestEntity<T> create(T entity, boolean graphql)
Any fields referenced by the entity that have the RestEnrichable annotation will also be converted to RestEntities.
Fields annotated with JsonProperty that implement Iterable will have their contents converted to RestEntities if the content class has the RestEnrichable annotation. Likewise Maps will have their values converted.
entity
- The entity to wrapgraphql
- True to include fields with the GraphQLName
annotationCopyright © 2003–2021 Atlassian. All rights reserved.