Package com.linecorp.armeria.server.docs
Class FieldInfo
java.lang.Object
com.linecorp.armeria.server.docs.FieldInfo
Metadata about a field of a struct or an exception.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic FieldInfoBuilder
builder
(String name, TypeSignature typeSignature) Returns a newly createdFieldInfoBuilder
.Returns the description information object of the field.boolean
int
hashCode()
location()
Returns the location of the field.name()
Returns the fully qualified type name of the field.static FieldInfo
of
(String name, TypeSignature typeSignature) static FieldInfo
of
(String name, TypeSignature typeSignature, DescriptionInfo descriptionInfo) Returns the requirement level of the field.toString()
Returns the metadata about the type of the field.withDescriptionInfo
(DescriptionInfo descriptionInfo) Returns a newFieldInfo
with the specifiedDescriptionInfo
.
-
Method Details
-
of
Creates a newFieldInfo
with the specifiedname
andTypeSignature
. TheFieldLocation
andFieldRequirement
of theFieldInfo
will beUNSPECIFIED
. -
of
public static FieldInfo of(String name, TypeSignature typeSignature, DescriptionInfo descriptionInfo) Creates a newFieldInfo
with the specifiedname
,TypeSignature
and description. TheFieldLocation
andFieldRequirement
of theFieldInfo
will beUNSPECIFIED
. -
builder
Returns a newly createdFieldInfoBuilder
. -
name
Returns the fully qualified type name of the field. -
location
Returns the location of the field. -
requirement
Returns the requirement level of the field. -
typeSignature
Returns the metadata about the type of the field. -
descriptionInfo
Returns the description information object of the field. -
withDescriptionInfo
Returns a newFieldInfo
with the specifiedDescriptionInfo
. Returnsthis
if thisFieldInfo
has the sameDescriptionInfo
. -
equals
-
hashCode
public int hashCode() -
toString
-