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.10. com.samscdrental.model.adt Package

The ADTs are in this package.

B.10.1. CustomerID.java

public class CustomerID
    implements java.io.Serializable
    {
    public CustomerID(  )
    public CustomerID( String aString ) throws CustomerIDFormatDeviation
    public void fromString( String aString ) throws CustomerIDFormatDeviation
    public static CustomerID parseString( String aString ) throws
        CustomerIDFormatDeviation
    boolean isInvalid(  )
    public String toString(  )
    public boolean equals( CustomerID aCustomerID )
    public boolean equals( Object obj )

    }

B.10.2. Dollar.java

public class Dollar
    implements java.io.Serializable
    {
    public Dollar(  )
    public Dollar( double value )
    public void fromString( String aString ) throws DollarFormatDeviation
    public static Dollar parseString( String aString ) throws
        DollarFormatDeviation
    public boolean equals( Dollar aDollar )
    void fromDouble( double value )
    public String toString(  )
    public boolean equals( Object obj )

    }

B.10.3. Name.java

public class Name
    implements java.io.Serializable
    {
    public Name(  )
    public Name( String aString ) throws NameFormatDeviation
    boolean isInvalid(  )
    public static Name parseString( String aString ) throws
        NameFormatDeviation
    public boolean equals( Name aName )
    public String toString(  )
    public boolean equals( Object obj )
    }

B.10.4. PhysicalID.java

 public class PhysicalID implements java.io.Serializable { public PhysicalID( ) public PhysicalID( String aString ) throws PhysicalIDFormatDeviation boolean isInvalid( ) public static PhysicalID ...
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