Modifier and Type | Method and Description |
---|---|
NewCar |
build() |
NewCar.Builder |
clearBrand()
Clears the value of the 'brand' field.
|
NewCar.Builder |
clearDescription()
Clears the value of the 'description' field.
|
NewCar.Builder |
clearDoors()
Clears the value of the 'doors' field.
|
NewCar.Builder |
clearEngine()
Clears the value of the 'engine' field.
|
NewCar.Builder |
clearModel()
Clears the value of the 'model' field.
|
NewCar.Builder |
clearOpt()
Clears the value of the 'opt' field.
|
NewCar.Builder |
clearOptionalExtra()
Clears the value of the 'optionalExtra' field.
|
NewCar.Builder |
clearRegistration()
Clears the value of the 'registration' field.
|
NewCar.Builder |
clearServiceHistory()
Clears the value of the 'serviceHistory' field.
|
NewCar.Builder |
clearVin()
Clears the value of the 'vin' field.
|
NewCar.Builder |
clearYear()
Clears the value of the 'year' field.
|
String |
getBrand()
Gets the value of the 'brand' field.
|
String |
getDescription()
Gets the value of the 'description' field.
|
Long |
getDoors()
Gets the value of the 'doors' field.
|
Engine |
getEngine()
Gets the value of the 'engine' field.
|
Engine.Builder |
getEngineBuilder()
Gets the Builder instance for the 'engine' field and creates one if it doesn't exist yet.
|
String |
getModel()
Gets the value of the 'model' field.
|
Integer |
getOpt()
Gets the value of the 'opt' field.
|
Object |
getOptionalExtra()
Gets the value of the 'optionalExtra' field.
|
String |
getRegistration()
Gets the value of the 'registration' field.
|
List<Service> |
getServiceHistory()
Gets the value of the 'serviceHistory' field.
|
Vin |
getVin()
Gets the value of the 'vin' field.
|
Long |
getYear()
Gets the value of the 'year' field.
|
boolean |
hasBrand()
Checks whether the 'brand' field has been set.
|
boolean |
hasDescription()
Checks whether the 'description' field has been set.
|
boolean |
hasDoors()
Checks whether the 'doors' field has been set.
|
boolean |
hasEngine()
Checks whether the 'engine' field has been set.
|
boolean |
hasEngineBuilder()
Checks whether the 'engine' field has an active Builder instance
|
boolean |
hasModel()
Checks whether the 'model' field has been set.
|
boolean |
hasOpt()
Checks whether the 'opt' field has been set.
|
boolean |
hasOptionalExtra()
Checks whether the 'optionalExtra' field has been set.
|
boolean |
hasRegistration()
Checks whether the 'registration' field has been set.
|
boolean |
hasServiceHistory()
Checks whether the 'serviceHistory' field has been set.
|
boolean |
hasVin()
Checks whether the 'vin' field has been set.
|
boolean |
hasYear()
Checks whether the 'year' field has been set.
|
NewCar.Builder |
setBrand(String value)
Sets the value of the 'brand' field.
|
NewCar.Builder |
setDescription(String value)
Sets the value of the 'description' field.
|
NewCar.Builder |
setDoors(long value)
Sets the value of the 'doors' field.
|
NewCar.Builder |
setEngine(Engine value)
Sets the value of the 'engine' field.
|
NewCar.Builder |
setEngineBuilder(Engine.Builder value)
Sets the Builder instance for the 'engine' field
|
NewCar.Builder |
setModel(String value)
Sets the value of the 'model' field.
|
NewCar.Builder |
setOpt(int value)
Sets the value of the 'opt' field.
|
NewCar.Builder |
setOptionalExtra(Object value)
Sets the value of the 'optionalExtra' field.
|
NewCar.Builder |
setRegistration(String value)
Sets the value of the 'registration' field.
|
NewCar.Builder |
setServiceHistory(List<Service> value)
Sets the value of the 'serviceHistory' field.
|
NewCar.Builder |
setVin(Vin value)
Sets the value of the 'vin' field.
|
NewCar.Builder |
setYear(long value)
Sets the value of the 'year' field.
|
public Long getYear()
public NewCar.Builder setYear(long value)
value
- The value of 'year'.public boolean hasYear()
public NewCar.Builder clearYear()
public String getRegistration()
public NewCar.Builder setRegistration(String value)
value
- The value of 'registration'.public boolean hasRegistration()
public NewCar.Builder clearRegistration()
public String getBrand()
public NewCar.Builder setBrand(String value)
value
- The value of 'brand'.public boolean hasBrand()
public NewCar.Builder clearBrand()
public String getModel()
public NewCar.Builder setModel(String value)
value
- The value of 'model'.public boolean hasModel()
public NewCar.Builder clearModel()
public Vin getVin()
public NewCar.Builder setVin(Vin value)
value
- The value of 'vin'.public boolean hasVin()
public NewCar.Builder clearVin()
public Long getDoors()
public NewCar.Builder setDoors(long value)
value
- The value of 'doors'.public boolean hasDoors()
public NewCar.Builder clearDoors()
public Engine getEngine()
public NewCar.Builder setEngine(Engine value)
value
- The value of 'engine'.public boolean hasEngine()
public Engine.Builder getEngineBuilder()
public NewCar.Builder setEngineBuilder(Engine.Builder value)
value
- The builder instance that must be set.public boolean hasEngineBuilder()
public NewCar.Builder clearEngine()
public Object getOptionalExtra()
public NewCar.Builder setOptionalExtra(Object value)
value
- The value of 'optionalExtra'.public boolean hasOptionalExtra()
public NewCar.Builder clearOptionalExtra()
public List<Service> getServiceHistory()
public NewCar.Builder setServiceHistory(List<Service> value)
value
- The value of 'serviceHistory'.public boolean hasServiceHistory()
public NewCar.Builder clearServiceHistory()
public Integer getOpt()
public NewCar.Builder setOpt(int value)
value
- The value of 'opt'.public boolean hasOpt()
public NewCar.Builder clearOpt()
public String getDescription()
public NewCar.Builder setDescription(String value)
value
- The value of 'description'.public boolean hasDescription()
public NewCar.Builder clearDescription()
Copyright © 2019 The Apache Software Foundation. All rights reserved.