Package com.linecorp.armeria.server.docs
Class EnumValueInfo
java.lang.Object
com.linecorp.armeria.server.docs.EnumValueInfo
Metadata about an enum value.
-
Constructor Summary
ConstructorDescriptionEnumValueInfo
(String name) Creates a new instance.EnumValueInfo
(String name, @Nullable Integer intValue) Creates a new instance.EnumValueInfo
(String name, @Nullable Integer intValue, DescriptionInfo descriptionInfo) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns the description information that describes the enum value.boolean
int
hashCode()
intValue()
Returns the integer value of the enum value.name()
Returns the name of the enum value.toString()
withDescriptionInfo
(DescriptionInfo descriptionInfo) Returns a newEnumValueInfo
with the specifiedDescriptionInfo
.
-
Constructor Details
-
EnumValueInfo
Creates a new instance.- Parameters:
name
- the name of the enum value
-
EnumValueInfo
Creates a new instance.- Parameters:
name
- the name of the enum valueintValue
- the integer value of the enum value
-
EnumValueInfo
public EnumValueInfo(String name, @Nullable @Nullable Integer intValue, DescriptionInfo descriptionInfo) Creates a new instance.- Parameters:
name
- the name of the enum valueintValue
- the integer value of the enum valuedescriptionInfo
- the description object that describes the enum value
-
-
Method Details
-
name
Returns the name of the enum value. -
intValue
Returns the integer value of the enum value. -
descriptionInfo
Returns the description information that describes the enum value. -
withDescriptionInfo
Returns a newEnumValueInfo
with the specifiedDescriptionInfo
. Returnsthis
if thisEnumValueInfo
has the sameDescriptionInfo
. -
hashCode
public int hashCode() -
equals
-
toString
-