Class GraphQLErrorLocationBuilder
java.lang.Object
com.commercetools.history.models.graph_ql.GraphQLErrorLocationBuilder
- All Implemented Interfaces:
Builder<GraphQLErrorLocation>
GraphQLErrorLocationBuilder
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
GraphQLErrorLocation graphQLErrorLocation = GraphQLErrorLocation.builder()
.line(0.3)
.column(0.3)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds GraphQLErrorLocation with checking for non-null required valuesbuilds GraphQLErrorLocation without checking for non-null required valuesPosition inlinewhere the error occurred.Position inlinewhere the error occurred.getLine()Line number of the query where the error occurred.Line number of the query where the error occurred.static GraphQLErrorLocationBuilderof()factory method for an instance of GraphQLErrorLocationBuilderstatic GraphQLErrorLocationBuilderof(GraphQLErrorLocation template) create builder for GraphQLErrorLocation instance
-
Constructor Details
-
GraphQLErrorLocationBuilder
public GraphQLErrorLocationBuilder()
-
-
Method Details
-
line
Line number of the query where the error occurred.
- Parameters:
line- value to be set- Returns:
- Builder
-
column
Position in
linewhere the error occurred.- Parameters:
column- value to be set- Returns:
- Builder
-
getLine
Line number of the query where the error occurred.
- Returns:
- line
-
getColumn
Position in
linewhere the error occurred.- Returns:
- column
-
build
builds GraphQLErrorLocation with checking for non-null required values- Specified by:
buildin interfaceBuilder<GraphQLErrorLocation>- Returns:
- GraphQLErrorLocation
-
buildUnchecked
builds GraphQLErrorLocation without checking for non-null required values- Returns:
- GraphQLErrorLocation
-
of
factory method for an instance of GraphQLErrorLocationBuilder- Returns:
- builder
-
of
create builder for GraphQLErrorLocation instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-