Class GenericResource
java.lang.Object
io.micronaut.http.hateoas.AbstractResource<GenericResource>
io.micronaut.http.hateoas.GenericResource
- All Implemented Interfaces:
Resource
Resource with indeterminate structure. This is used as the deserialization target of
Resource.getEmbedded(), because we can't determine the type of the resource for deserialization, there.- Since:
- 3.4.0
- Author:
- yawkat
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProperty(String key, Object v) Add a property to this resource (internal, for deserialization use only).booleanGet the properties of this resource, as an untyped map.inthashCode()toString()Methods inherited from class AbstractResource
embedded, embedded, embedded, getEmbedded, getLinks, link, link, setEmbedded, setLinks
-
Constructor Details
-
GenericResource
Create a new resource. Note: Should only be called by deserialization – if you wish to create your ownResource, please create a custom implementation ofAbstractResource.
-
-
Method Details
-
addProperty
-
getAdditionalProperties
-
equals
-
hashCode
-
toString
-