FileDocCategorySizeDatePackage
Bike.javaAPI DocExample2193Mon Apr 25 00:11:04 BST 2005com.springbook

Bike

public 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 intgetBikeId()

 return bikeId; 
public intgetFrame()

 return frame; 
public java.lang.StringgetManufacturer()

 return manufacturer; 
public java.lang.StringgetModel()

 return model; 
public java.util.SetgetReservations()

        return reservations;
    
public java.lang.StringgetSerialNo()

 return serialNo; 
public java.lang.StringgetStatus()

 return status; 
public doublegetWeight()

 return weight; 
public voidsetBikeId(int id)

 this.bikeId = id; 
public voidsetFrame(int frame)

 this.frame = frame; 
public voidsetManufacturer(java.lang.String manufacturer)

      this.manufacturer = manufacturer;
   
public voidsetModel(java.lang.String model)

 this.model = model; 
public voidsetReservations(java.util.Set reservations)

        this.reservations = reservations;
    
public voidsetSerialNo(java.lang.String serialNo)

 this.serialNo = serialNo; 
public voidsetStatus(java.lang.String status)

 this.status = status; 
public voidsetWeight(double weight)

 this.weight = weight; 
public java.lang.StringtoString()

      return "com.springbook.Bike : (" + bikeId + ") \n" +
            ": manufacturer -- " + manufacturer +
            "\n: model -- " + model +
            "\n: frame -- " + frame +
            "\n: serialNo -- " + serialNo +
            "\n: weight -- " + weight +
            "\n: status -- " + status +
            ".\n";