Module java4ever.binding
Record Class GqlSchemaRoot.GqlType.GqlEnum
java.lang.Object
java.lang.Record
tech.deplant.java4ever.binding.reference.gql.GqlSchemaRoot.GqlType.GqlEnum
- All Implemented Interfaces:
GqlSchemaRoot.GqlType
- Enclosing interface:
GqlSchemaRoot.GqlType
public static record GqlSchemaRoot.GqlType.GqlEnum(GqlSchemaRoot.GqlKind kind, String name, String description, Collection<GqlSchemaRoot.GqlEnumValue> enumValues)
extends Record
implements GqlSchemaRoot.GqlType
-
Nested Class Summary
Nested classes/interfaces inherited from interface tech.deplant.java4ever.binding.reference.gql.GqlSchemaRoot.GqlType
GqlSchemaRoot.GqlType.GqlEnum, GqlSchemaRoot.GqlType.GqlInputObject, GqlSchemaRoot.GqlType.GqlInterface, GqlSchemaRoot.GqlType.GqlObject, GqlSchemaRoot.GqlType.GqlScalar -
Constructor Summary
ConstructorsConstructorDescriptionGqlEnum(GqlSchemaRoot.GqlKind kind, String name, String description, Collection<GqlSchemaRoot.GqlEnumValue> enumValues) Creates an instance of aGqlEnumrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.Returns the value of theenumValuesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.kind()Returns the value of thekindrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GqlEnum
public GqlEnum(GqlSchemaRoot.GqlKind kind, String name, String description, Collection<GqlSchemaRoot.GqlEnumValue> enumValues) Creates an instance of aGqlEnumrecord class.- Parameters:
kind- the value for thekindrecord componentname- the value for thenamerecord componentdescription- the value for thedescriptionrecord componentenumValues- the value for theenumValuesrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
kind
Returns the value of thekindrecord component.- Specified by:
kindin interfaceGqlSchemaRoot.GqlType- Returns:
- the value of the
kindrecord component
-
name
Returns the value of thenamerecord component.- Specified by:
namein interfaceGqlSchemaRoot.GqlType- Returns:
- the value of the
namerecord component
-
description
Returns the value of thedescriptionrecord component.- Specified by:
descriptionin interfaceGqlSchemaRoot.GqlType- Returns:
- the value of the
descriptionrecord component
-
enumValues
Returns the value of theenumValuesrecord component.- Returns:
- the value of the
enumValuesrecord component
-