FileDocCategorySizeDatePackage
Bike.javaAPI DocExample1974Sun Apr 24 19:38:20 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
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.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 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";