Package com.apollographql.apollo3.compiler.codegen.java.helpers

Functions

Link copied to clipboard
fun TypeSpec.Builder.makeDataClass(): TypeSpec.Builder
Link copied to clipboard
fun TypeSpec.Builder.makeDataClassFromParameters(parameters: List<ParameterSpec>): TypeSpec.Builder

Given a list of ParameterSpec:

Link copied to clipboard
fun TypeSpec.Builder.makeDataClassFromProperties(fields: List<FieldSpec>): TypeSpec.Builder

Same as makeDataClassFromParameters but takes fields instead of parameters as input

Link copied to clipboard
fun TypeSpec.withEqualsImplementation(): TypeSpec
Link copied to clipboard
fun TypeSpec.withHashCodeImplementation(): TypeSpec
Link copied to clipboard
fun TypeSpec.withToStringImplementation(): TypeSpec