Package com.styra.opa.openapi.utils
Class TypedObject
- java.lang.Object
-
- com.styra.opa.openapi.utils.TypedObject
-
public class TypedObject extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TypedObject.Serializer
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> TypedObject
of(T value, Utils.JsonShape shape, com.fasterxml.jackson.core.type.TypeReference<T> typeReference)
Utils.JsonShape
shape()
java.lang.String
toString()
com.fasterxml.jackson.core.type.TypeReference<?>
typeReference()
java.lang.Object
value()
-
-
-
Method Detail
-
value
public java.lang.Object value()
-
typeReference
public com.fasterxml.jackson.core.type.TypeReference<?> typeReference()
-
shape
public Utils.JsonShape shape()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
of
public static <T> TypedObject of(T value, Utils.JsonShape shape, com.fasterxml.jackson.core.type.TypeReference<T> typeReference)
-
-