B.10. com.samscdrental.model.adt Package

 <  Day Day Up  >  

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 parseString( String aString ) throws         PhysicalIDFormatDeviation     public boolean equals( PhysicalID aPhysicalID )     public String toString(  )     public boolean equals( Object obj )     } 

B.10.5. Timestamp.java

 public class Timestamp     implements java.io.Serializable     {     public Timestamp(  )         // Will be initialized to the current time     public int differenceInDays( Timestamp aTimestamp )     public Timestamp addDays( int days )     public String toString(  )     public boolean equals( Timestamp aTimestamp )     public boolean equals( Object obj )     } 

B.10.6. UPCCode.java

 public class UPCCode     implements java.io.Serializable     {     public UPCCode(  )     public static UPCCode parseString( String aString ) throws         UPCCodeFormatDeviation     public UPCCode( String aString ) throws UPCCodeFormatDeviation     public boolean equals( UPCCode aUPCCode )     public String toString(  )     public boolean equals( Object obj )     } 

 <  Day Day Up  >  


Prefactoring
Prefactoring: Extreme Abstraction, Extreme Separation, Extreme Readability
ISBN: 0596008740
EAN: 2147483647
Year: 2005
Pages: 175
Authors: Ken Pugh

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net