Package com.linecorp.armeria.server.docs
Class EnumInfo
java.lang.Object
com.linecorp.armeria.server.docs.EnumInfo
- All Implemented Interfaces:
DescriptiveTypeInfo
Metadata about an enum type.
-
Constructor Summary
ConstructorDescriptionCreates a new instance.EnumInfo
(Class<? extends Enum<?>> enumType, DescriptionInfo descriptionInfo) Creates a new instance.Creates a new instance.EnumInfo
(String name, Class<? extends Enum<?>> enumType, DescriptionInfo descriptionInfo) Creates a new instance.EnumInfo
(String name, Iterable<EnumValueInfo> values) Creates a new instance.EnumInfo
(String name, Iterable<EnumValueInfo> values, DescriptionInfo descriptionInfo) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns the description information of the enum.boolean
int
hashCode()
name()
Returns the fully qualified type name.toString()
values()
Returns the constant values defined by the type.withDescriptionInfo
(DescriptionInfo descriptionInfo) Returns a newEnumInfo
with the specifiedDescriptionInfo
.withValues
(Iterable<EnumValueInfo> values) Returns a newEnumInfo
with the specifiedDescriptionInfo
.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.linecorp.armeria.server.docs.DescriptiveTypeInfo
findDescriptiveTypes
-
Constructor Details
-
EnumInfo
Creates a new instance. -
EnumInfo
Creates a new instance. -
EnumInfo
Creates a new instance. -
EnumInfo
Creates a new instance. -
EnumInfo
Creates a new instance. -
EnumInfo
Creates a new instance.
-
-
Method Details
-
name
Description copied from interface:DescriptiveTypeInfo
Returns the fully qualified type name.- Specified by:
name
in interfaceDescriptiveTypeInfo
-
values
Returns the constant values defined by the type. -
withValues
Returns a newEnumInfo
with the specifiedDescriptionInfo
. Returnsthis
if thisEnumInfo
has the sameDescriptionInfo
. -
descriptionInfo
Returns the description information of the enum.- Specified by:
descriptionInfo
in interfaceDescriptiveTypeInfo
-
withDescriptionInfo
Returns a newEnumInfo
with the specifiedDescriptionInfo
. Returnsthis
if thisEnumInfo
has the sameDescriptionInfo
. -
equals
-
hashCode
public int hashCode() -
toString
-