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

8.5. Abstract Data Types

The abstract data types are contained in the com.samscdrental.model.adt package:

    CustomerID.java
    PhysicalID.java
    Timestamp.java
    UPCCode.java
    Dollar.java
    Name.java

The ADTs have no dependencies to the model. They are reusable in a number of different programs. They represent common data types: CustomerID, PhysicalID, Timestamp, UPCCode, Dollar, and Name.

Each ADT has methods for converting to and from strings. Two ADTs have corresponding display classes, since they appear in GUI dialogs. These two are CustomerIDTextField and PhysicalIDTextField. If the other ADTs appear in future dialogs, equivalent widgets will be created.

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