FileDocCategorySizeDatePackage
CommandLineView.javaAPI DocExample599Fri Apr 22 11:04:44 BST 2005com.springbook

CommandLineView

public class CommandLineView extends Object

Fields Summary
private RentABike
rentaBike
Constructors Summary
public CommandLineView()

Methods Summary
public RentABikegetRentaBike()

 return this.rentaBike; 
public voidprintAllBikes()

      System.out.println(rentaBike.toString());
      Iterator iter = rentaBike.getBikes().iterator();
      while(iter.hasNext()) {
         Bike bike = (Bike)iter.next();
         System.out.println(bike.toString());
      }
   
public voidsetRentABike(RentABike rentaBike)

      this.rentaBike = rentaBike;