Skip to Main Content
Prefactoring
book

Prefactoring

by Ken Pugh
September 2005
Intermediate to advanced content levelIntermediate to advanced
240 pages
6h 28m
English
O'Reilly Media, Inc.
Content preview from Prefactoring

B.12. com.samscdrental.model Package

The classes in the model are in this package. The code is shown for CDDisc.

B.12.1. CDCategory.java

public class CDCategory
    implements java.io.Serializable
    {
    public CDCategory(  )
    public CDCategory( int value )
    public String toString(  )
    public static CDCategory parseString( String aString ) throws
        CDCategoryFormatDeviation
    public boolean equals( CDCategory aCDCategory )
    public boolean equals( Object obj )

    }

B.12.2. CDCategoryValues.java

public class CDCategoryValues
    {
    int getBaseRentalPeriodDays( CDCategory cdCategory )
    Dollar getRentalFee( CDCategory cdCategory )

    }

B.12.3. CDDisc.java

public class CDDisc
    implements java.io.Serializable
    {
    public CDDisc( CDRelease aCDRelease, PhysicalID aPhysicalID )
    public Rental getRental(  )
    public CDRelease getCdRelease(  )
    public PhysicalID getPhysicalID(  )
    public boolean isRented(  )
    public RentalContractDTO startRental( Customer aCustomer ) throws
        CheckOutDeviation
    public void endRental(  ) throws CheckInDeviation, LateReturnDeviation
    }

B.12.4. CDRelease.java

public class CDRelease
    implements java.io.Serializable
    {
    public CDCategory getCdCategory(  )
    public Name getTitle(  )
    public UPCCode getUPCCode(  )
    public CDRelease( CDCategory aCDCategory, Name aTitle, UPCCode aUPCCode )
    int getBaseRentalPeriodDays(  )
    Dollar getRentalFee(  )
    }

B.12.5. Customer.java

 public class Customer implements java.io.Serializable { public CustomerID getCustomerID( ) public Name getName( ) public Customer( Name aName, CustomerID ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Understanding Unittest.Mock

Understanding Unittest.Mock

Mario Corchero
Java™ Performance

Java™ Performance

Charlie Hunt, Binu John

Publisher Resources

ISBN: 0596008740Supplemental ContentCatalog PageErrata