Module java4ever.binding
Record Class SdkEnum
java.lang.Object
java.lang.Record
tech.deplant.java4ever.binding.generator.jtype.SdkEnum
- All Implemented Interfaces:
SdkObject
public record SdkEnum(String name, EnumOfConsts.Const[] consts, SdkDocs javadoc)
extends Record
implements SdkObject
-
Constructor Summary
ConstructorsConstructorDescriptionSdkEnum(String name, EnumOfConsts.Const[] consts, SdkDocs javadoc) Creates an instance of aSdkEnumrecord class. -
Method Summary
Modifier and TypeMethodDescriptionconsts()Returns the value of theconstsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanbooleanisParams()booleanisResult()booleanbooleanjavadoc()Returns the value of thejavadocrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.type()
-
Constructor Details
-
SdkEnum
Creates an instance of aSdkEnumrecord class.- Parameters:
name- the value for thenamerecord componentconsts- the value for theconstsrecord componentjavadoc- the value for thejavadocrecord component
-
-
Method Details
-
poeticize
-
type
-
isSimpleWrapper
public boolean isSimpleWrapper()- Specified by:
isSimpleWrapperin interfaceSdkObject
-
isFlatType
public boolean isFlatType()- Specified by:
isFlatTypein interfaceSdkObject
-
isStructure
public boolean isStructure()- Specified by:
isStructurein interfaceSdkObject
-
isParams
public boolean isParams() -
isResult
public boolean isResult() -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
name
Returns the value of thenamerecord component. -
consts
Returns the value of theconstsrecord component.- Returns:
- the value of the
constsrecord component
-
javadoc
Returns the value of thejavadocrecord component.- Returns:
- the value of the
javadocrecord component
-