Modifier and Type | Method and Description |
---|---|
Car |
build() |
Car.Builder |
clearDoors()
Clears the value of the 'doors' field.
|
Car.Builder |
clearEngine()
Clears the value of the 'engine' field.
|
Car.Builder |
clearMake()
Clears the value of the 'make' field.
|
Car.Builder |
clearModel()
Clears the value of the 'model' field.
|
Car.Builder |
clearOptionalExtra()
Clears the value of the 'optionalExtra' field.
|
Car.Builder |
clearRegistration()
Clears the value of the 'registration' field.
|
Car.Builder |
clearServiceHistory()
Clears the value of the 'serviceHistory' field.
|
Car.Builder |
clearVin()
Clears the value of the 'vin' field.
|
Car.Builder |
clearYear()
Clears the value of the 'year' field.
|
int |
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 |
getMake()
Gets the value of the 'make' field.
|
String |
getModel()
Gets the value of the 'model' 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 |
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 |
hasMake()
Checks whether the 'make' field has been set.
|
boolean |
hasModel()
Checks whether the 'model' 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.
|
Car.Builder |
setDoors(int value)
Sets the value of the 'doors' field.
|
Car.Builder |
setEngine(Engine value)
Sets the value of the 'engine' field.
|
Car.Builder |
setEngineBuilder(Engine.Builder value)
Sets the Builder instance for the 'engine' field
|
Car.Builder |
setMake(String value)
Sets the value of the 'make' field.
|
Car.Builder |
setModel(String value)
Sets the value of the 'model' field.
|
Car.Builder |
setOptionalExtra(Object value)
Sets the value of the 'optionalExtra' field.
|
Car.Builder |
setRegistration(String value)
Sets the value of the 'registration' field.
|
Car.Builder |
setServiceHistory(List<Service> value)
Sets the value of the 'serviceHistory' field.
|
Car.Builder |
setVin(Vin value)
Sets the value of the 'vin' field.
|
Car.Builder |
setYear(long value)
Sets the value of the 'year' field.
|
public long getYear()
public Car.Builder setYear(long value)
value
- The value of 'year'.public boolean hasYear()
public Car.Builder clearYear()
public String getRegistration()
public Car.Builder setRegistration(String value)
value
- The value of 'registration'.public boolean hasRegistration()
public Car.Builder clearRegistration()
public String getMake()
public Car.Builder setMake(String value)
value
- The value of 'make'.public boolean hasMake()
public Car.Builder clearMake()
public String getModel()
public Car.Builder setModel(String value)
value
- The value of 'model'.public boolean hasModel()
public Car.Builder clearModel()
public Vin getVin()
public Car.Builder setVin(Vin value)
value
- The value of 'vin'.public boolean hasVin()
public Car.Builder clearVin()
public int getDoors()
public Car.Builder setDoors(int value)
value
- The value of 'doors'.public boolean hasDoors()
public Car.Builder clearDoors()
public Engine getEngine()
public Car.Builder setEngine(Engine value)
value
- The value of 'engine'.public boolean hasEngine()
public Engine.Builder getEngineBuilder()
public Car.Builder setEngineBuilder(Engine.Builder value)
value
- The builder instance that must be set.public boolean hasEngineBuilder()
public Car.Builder clearEngine()
public Object getOptionalExtra()
public Car.Builder setOptionalExtra(Object value)
value
- The value of 'optionalExtra'.public boolean hasOptionalExtra()
public Car.Builder clearOptionalExtra()
public List<Service> getServiceHistory()
public Car.Builder setServiceHistory(List<Service> value)
value
- The value of 'serviceHistory'.public boolean hasServiceHistory()
public Car.Builder clearServiceHistory()
Copyright © 2019 The Apache Software Foundation. All rights reserved.