| Modifier and Type | Method and Description |
|---|---|
static Vehicle |
createVehicle(long id,
String name,
int capacity)
Create a new vehicle with the given ID, name and capacity.
|
static Vehicle |
testVehicle(long id)
Create a vehicle with given ID and capacity of zero.
|
static VehicleData |
vehicleData(String name,
int capacity)
Create vehicle data.
|
public static VehicleData vehicleData(String name, int capacity)
name - vehicle's namecapacity - vehicle's capacitypublic 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–2021 JBoss by Red Hat. All rights reserved.