FileDocCategorySizeDatePackage
Bike.javaAPI DocExample1579Fri Apr 22 11:04:44 BST 2005com.springbook

Bike

public class Bike extends Object

Fields Summary
private String
manufacturer
private String
model
private int
frame
private String
serialNo
private double
weight
private String
status
Constructors Summary
public Bike(String manufacturer, String model, int frame, String serialNo, double weight, String status)

      this.manufacturer = manufacturer;
      this.model = model;
      this.frame = frame;
      this.serialNo = serialNo;
      this.weight = weight;
      this.status = status;
   
Methods Summary
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 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 : " +
            "manufacturer -- " + manufacturer +
            "\n: model -- " + model +
            "\n: frame -- " + frame +
            "\n: serialNo -- " + serialNo +
            "\n: weight -- " + weight +
            "\n: status -- " + status +
            ".\n";