Module java4ever.binding
Record Class GqlSchemaRoot.GqlEnumValue
java.lang.Object
java.lang.Record
tech.deplant.java4ever.binding.reference.gql.GqlSchemaRoot.GqlEnumValue
- Enclosing class:
GqlSchemaRoot
-
Constructor Summary
ConstructorsConstructorDescriptionGqlEnumValue
(String name, String description, boolean isDeprecated, String deprecationReason) Creates an instance of aGqlEnumValue
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedeprecationReason
record component.Returns the value of thedescription
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
Returns the value of theisDeprecated
record component.name()
Returns the value of thename
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
GqlEnumValue
public GqlEnumValue(String name, String description, boolean isDeprecated, String deprecationReason) Creates an instance of aGqlEnumValue
record class.- Parameters:
name
- the value for thename
record componentdescription
- the value for thedescription
record componentisDeprecated
- the value for theisDeprecated
record componentdeprecationReason
- the value for thedeprecationReason
record component
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
description
Returns the value of thedescription
record component.- Returns:
- the value of the
description
record component
-
isDeprecated
public boolean isDeprecated()Returns the value of theisDeprecated
record component.- Returns:
- the value of the
isDeprecated
record component
-
deprecationReason
Returns the value of thedeprecationReason
record component.- Returns:
- the value of the
deprecationReason
record component
-