public GraphQLInterfaceType transform ( Consumer < Builder > builderConsumer ) { Builder builder = newInterface ( this ) ; builderConsumer . accept ( builder ) ; return builder . build ( ) ; }
This helps you transform the current GraphQLInterfaceType into another one by starting a builder with all the current values and allows you to transform it how you want .