Package com.linecorp.armeria.server.docs
Class StructInfo
java.lang.Object
com.linecorp.armeria.server.docs.StructInfo
- All Implemented Interfaces:
NamedTypeInfo
@UnstableApi public final class StructInfo extends Object implements NamedTypeInfo
Metadata about a struct type.
-
Constructor Summary
Constructors Constructor Description StructInfo(String name, Iterable<FieldInfo> fields)
Creates a new instance.StructInfo(String name, Iterable<FieldInfo> fields, String docString)
Creates a new instance. -
Method Summary
Modifier and Type Method Description String
docString()
Returns the documentation string.boolean
equals(Object o)
List<FieldInfo>
fields()
Returns the metadata about the fields of the type.Set<TypeSignature>
findNamedTypes()
Returns all enum, struct and exception types referred by this type.int
hashCode()
String
name()
Returns the fully qualified type name.String
toString()
-
Constructor Details
-
StructInfo
Creates a new instance. -
StructInfo
Creates a new instance.
-
-
Method Details
-
name
Description copied from interface:NamedTypeInfo
Returns the fully qualified type name.- Specified by:
name
in interfaceNamedTypeInfo
-
fields
Returns the metadata about the fields of the type. -
docString
Description copied from interface:NamedTypeInfo
Returns the documentation string. If not available, an empty string is returned.- Specified by:
docString
in interfaceNamedTypeInfo
-
findNamedTypes
Description copied from interface:NamedTypeInfo
Returns all enum, struct and exception types referred by this type.- Specified by:
findNamedTypes
in interfaceNamedTypeInfo
-
equals
-
hashCode
public int hashCode() -
toString
-