| Modifier and Type | Method and Description |
|---|---|
static Vehicle |
createVehicle(long id,
String name,
int capacity)
Create a new vehicle with give id, name and capacity.
|
static Vehicle |
testVehicle(long id)
Create a vehicle with given ID and capacity of zero.
|
public static Vehicle createVehicle(long id, String name, int capacity)
id - vehicle's IDname - vehicle's namecapacity - vehicle's capacitypublic static Vehicle testVehicle(long id)
id - vehicle's IDCopyright © 2001–2020 JBoss by Red Hat. All rights reserved.