Bikepublic class Bike extends Object
Fields Summary |
---|
private int | bikeId | private String | manufacturer | private String | model | private int | frame | private String | serialNo | private double | weight | private String | status | private Set | reservations |
Constructors Summary |
---|
public Bike()
| public Bike(String manufacturer, String model, int frame, String serialNo, double weight, String status)
this(0, manufacturer, model, frame, serialNo, weight, status);
| public Bike(int id, String manufacturer, String model, int frame, String serialNo, double weight, String status)
this.bikeId = id;
this.manufacturer = manufacturer;
this.model = model;
this.frame = frame;
this.serialNo = serialNo;
this.weight = weight;
this.status = status;
|
Methods Summary |
---|
public int | getBikeId() return bikeId;
| public int | getFrame() return frame;
| public java.lang.String | getManufacturer() return manufacturer;
| public java.lang.String | getModel() return model;
| public java.util.Set | getReservations()
return reservations;
| public java.lang.String | getSerialNo() return serialNo;
| public java.lang.String | getStatus() return status;
| public double | getWeight() return weight;
| public void | setBikeId(int id) this.bikeId = id;
| public void | setFrame(int frame) this.frame = frame;
| public void | setManufacturer(java.lang.String manufacturer)
this.manufacturer = manufacturer;
| public void | setModel(java.lang.String model) this.model = model;
| public void | setReservations(java.util.Set reservations)
this.reservations = reservations;
| public void | setSerialNo(java.lang.String serialNo) this.serialNo = serialNo;
| public void | setStatus(java.lang.String status) this.status = status;
| public void | setWeight(double weight) this.weight = weight;
| public java.lang.String | toString()
return "com.springbook.Bike : (" + bikeId + ") \n" +
": manufacturer -- " + manufacturer +
"\n: model -- " + model +
"\n: frame -- " + frame +
"\n: serialNo -- " + serialNo +
"\n: weight -- " + weight +
"\n: status -- " + status +
".\n";
|
|