Modifier and Type | Method and Description |
---|---|
ShortCar |
build() |
ShortCar.Builder |
clearEngine()
Clears the value of the 'engine' field.
|
ShortCar.Builder |
clearMake()
Clears the value of the 'make' field.
|
ShortCar.Builder |
clearVin()
Clears the value of the 'vin' field.
|
ShortCar.Builder |
clearYear()
Clears the value of the 'year' 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.
|
Vin |
getVin()
Gets the value of the 'vin' field.
|
Long |
getYear()
Gets the value of the 'year' field.
|
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 |
hasVin()
Checks whether the 'vin' field has been set.
|
boolean |
hasYear()
Checks whether the 'year' field has been set.
|
ShortCar.Builder |
setEngine(Engine value)
Sets the value of the 'engine' field.
|
ShortCar.Builder |
setEngineBuilder(Engine.Builder value)
Sets the Builder instance for the 'engine' field
|
ShortCar.Builder |
setMake(String value)
Sets the value of the 'make' field.
|
ShortCar.Builder |
setVin(Vin value)
Sets the value of the 'vin' field.
|
ShortCar.Builder |
setYear(long value)
Sets the value of the 'year' field.
|
public String getMake()
public ShortCar.Builder setMake(String value)
value
- The value of 'make'.public boolean hasMake()
public ShortCar.Builder clearMake()
public Engine getEngine()
public ShortCar.Builder setEngine(Engine value)
value
- The value of 'engine'.public boolean hasEngine()
public Engine.Builder getEngineBuilder()
public ShortCar.Builder setEngineBuilder(Engine.Builder value)
value
- The builder instance that must be set.public boolean hasEngineBuilder()
public ShortCar.Builder clearEngine()
public Long getYear()
public ShortCar.Builder setYear(long value)
value
- The value of 'year'.public boolean hasYear()
public ShortCar.Builder clearYear()
public Vin getVin()
public ShortCar.Builder setVin(Vin value)
value
- The value of 'vin'.public boolean hasVin()
public ShortCar.Builder clearVin()
Copyright © 2019 The Apache Software Foundation. All rights reserved.