FileDocCategorySizeDatePackage
CDCategoryValues.javaAPI DocExample1615Wed May 04 06:18:30 BST 2005com.samscdrental.model

CDCategoryValues

public class CDCategoryValues extends Object

Title: Sams CD Rental Store

Description:

Copyright: Copyright (c) 2004

Company:

author
Ken Pugh
version
1.0

Fields Summary
private CDCategoryInternalValues[]
theCDCategoryValues
Constructors Summary
Methods Summary
intgetBaseRentalPeriodDays(CDCategory cdCategory)


	    
	
		for ( int i = 0; i < theCDCategoryValues.length; i++ )
		{
			if ( theCDCategoryValues[i].theCDCategory.equals( cdCategory ) )
			{
				return theCDCategoryValues[i].theBaseRentalPeriodDays;
			}
		}
		return 0;
	
DollargetRentalFee(CDCategory cdCategory)

		for ( int i = 0; i < theCDCategoryValues.length; i++ )
		{
			if ( theCDCategoryValues[i].theCDCategory.equals( cdCategory ) )
			{
				return theCDCategoryValues[i].theRentalFee;
			}
		}
		return new Dollar( 0 );