Modifier and Type | Method and Description |
---|---|
Engine |
build() |
Engine.Builder |
clearCapacity()
Clears the value of the 'capacity' field.
|
Engine.Builder |
clearHasTurboCharger()
Clears the value of the 'hasTurboCharger' field.
|
Engine.Builder |
clearType()
Clears the value of the 'type' field.
|
Float |
getCapacity()
Gets the value of the 'capacity' field.
|
Boolean |
getHasTurboCharger()
Gets the value of the 'hasTurboCharger' field.
|
EngineType |
getType()
Gets the value of the 'type' field.
|
boolean |
hasCapacity()
Checks whether the 'capacity' field has been set.
|
boolean |
hasHasTurboCharger()
Checks whether the 'hasTurboCharger' field has been set.
|
boolean |
hasType()
Checks whether the 'type' field has been set.
|
Engine.Builder |
setCapacity(float value)
Sets the value of the 'capacity' field.
|
Engine.Builder |
setHasTurboCharger(boolean value)
Sets the value of the 'hasTurboCharger' field.
|
Engine.Builder |
setType(EngineType value)
Sets the value of the 'type' field.
|
public EngineType getType()
public Engine.Builder setType(EngineType value)
value
- The value of 'type'.public boolean hasType()
public Engine.Builder clearType()
public Float getCapacity()
public Engine.Builder setCapacity(float value)
value
- The value of 'capacity'.public boolean hasCapacity()
public Engine.Builder clearCapacity()
public Boolean getHasTurboCharger()
public Engine.Builder setHasTurboCharger(boolean value)
value
- The value of 'hasTurboCharger'.public boolean hasHasTurboCharger()
public Engine.Builder clearHasTurboCharger()
Copyright © 2019 The Apache Software Foundation. All rights reserved.