The object adapter pattern expressed in UML. The adapter hides the adaptee's interface from the client.The class adapter pattern expressed in UML.
Buy apple desktops and laptops, apple accessories and components, drives and networking components at cheap prices.

Adapters

In computer programming, the adapter design pattern (often referred to as the wrapper pattern or simply a wrapper) 'adapts' one interface for a class into one that a client expects. more...

Home
Apple Accessories
Adapters
Audio/Video
$1 - $25
$25 - $50
$50 - $100
$100 - $200
$200 - $500
$500 - $1000
$1000 - $2000
Other
$1 - $25
$25 - $50
$50 - $100
$100 - $200
$200 - $500
$500 - $1000
$1000 - $2000
Power
$1 - $25
$25 - $50
$50 - $100
$100 - $200
$200 - $500
$500 - $1000
$1000 - $2000
Bags & Carry Cases
Cables & Connectors
Manuals
Other
Skins & Protectors
Speakers & Headphones
Apple Components
Apple Desktops
Apple Laptops & Notebooks
Apple Networking
Apple Printers, Scanners...
Other
Vintage Apple

An adapter allows classes to work together that normally could not because of incompatible interfaces by wrapping its own interface around that of an already existing class. The adapter is also responsible for handling any logic necessary to transform data into a form that is useful for the consumer. For instance, if multiple boolean values are stored as a single integer but your consumer requires a 'true'/'false', the adapter would be responsible for extracting the appropriate values from the integer value.

There are two types of adapter patterns:

Object Adapter pattern 
In this type of adapter pattern, the adapter contains an instance of the class it wraps. In this situation, the adapter makes calls to the instance of the wrapped object.
Class Adapter pattern 
This type of adapter uses multiple inheritance to achieve its goal. The adapter is created inheriting interfaces from both the interface that is expected and the interface that is pre-existing. Note that when the adapter must adapt multiple adaptees, the Class Adapter pattern cannot be used in languages such as Java that do not support multiple inheritance.

The adapter pattern is useful in situations where an already existing class provides some or all of the services you need but does not use the interface you need. A good real life example is an adapter that converts the interface of a Document Object Model of an XML document into a tree structure that can be displayed. A link to a tutorial that uses the adapter design pattern is listed in the links below.

Sample - Object Adapter

Sample - Class Adapter

Read more at Wikipedia.org


Ac Adapter for Apple Mac iBook PowerBook G4 65w A1021 $19.99 Converter Plug for Apple iPhone iPod PowerBook adapter $7.99
New Ac Power Adapter for Apple PowerBook G3 iBook 65W $22.00 New Ac Adapter Charger for Apple iBook G3 Clamshell $22.00
New 85w Ac Adapter/Power Supply For Apple MacBook A1172 $45.00 Ac Power Adapter for Apple MacBook A1184 Ma538Ll 65W $45.00
Ac Power Adapter for Apple PowerBook G4 15" Titanium $22.00 New Apple iMac Flat Panel Power Cord 922-6676 922-5035 $7.99
New Ac Power Adapter for Apple PowerBook G3 M5343 Pizmo $22.00 New Ac Power Adapter for Apple PowerBook G3 Wallstreet $22.00
2 x 3.5mm Headphone Adapter for Samsung G600 F480 $4.99 45W Ac Power Adapter for Apple iBook PowerBook G4 A1036 $6.99
Genuine Apple MagSafe MacBook Pro Ac Adapter A1184 60W $39.99 Apple 85W Magsafe Power Adapter for Macbook Pro $49.50
3.5mm Headphone Adapter 4 Lg Shine Ku990 Vx8700 Vx8500 $5.79 45W Apple Macbook pro G4 iBook Ac Adapter Power Charger $8.59
Brand New Apple Dvi to Vga Display Adapter $9.50 Ac Power Adapter For Roland Mc-303 Mc303 Mc Synthesizer $25.99
For Apple iBook PowerBook G4 A1036 Adapter Power Supply $14.95 Sonnet Tempo 2 Port Sata Pci Adapter Card $1.00
Apple Mac PowerBook iBook G3 G4 YoYo Power Cord M7332 $8.99 Apple G4 Ac adapter $45.50
Apple Power Extension Adapter 6' Foot $9.50 65W Ac Power Adapter A1021 For Apple G4, iBook, in Usa $36.32
New Apple MacBook Pro 60W MagSafe A1184 Ac Charger A3A $35.99 New 60W Ac Adapter Power Supply For Apple MacBook A1184 $35.99
MagSafe Power Adapter for MacBook Core A1184 Ma538Ll/A $45.98 Power Supply Ac Adapter For Apple Macbook MagSafe A1184 $45.98
Apple Mac A1021 iBook PowerBook G4 Adapter Square 65W $38.00 45W A1036 Ac Adapter Charger for Apple Mac iBook G4 New $30.55
Apple Mac PowerBook G3 iBook Power Ac Adapter Yo-Yo 45W $29.99 Apple Mac New Dvi to Vga Display Adapter $8.00
New Ac Adapter for Apple iBook Powerbook A1036 $22.00 65W Ac Power Adapter for Apple iBook G3 G4 A1021 $22.00
Apple Mac PowerBook G3 iBook Ac Adapter Yo-Yo Style 45W $29.99 Apple Mac iBook PowerBook G4 Titanium Yo-Yo Adapter 45W $29.99
New! Ac Power Adapter For Apple iBook PowerBook Pismo $16.78 New Power Supply Cord For Apple PowerBook Mac G4 iBook $16.98
Apple Mini-Vga to S-Video Composite Adapter $9.50 Apple Mini-Vga to Vga Adapter for iMac, eMac & iBook $9.50
Power Supply+Cord for Apple A1036 G4 iBook Powerbook $8.88 Apple PowerBook iBook G4 65W Adapter A1021 New Original $44.99
Apple Mac iBook PowerBook G3 Yoyo Adapter 45W M7332 $29.99 45W Apple G4 iBook Powerbook Power Adapter A1036 M8482 $9.99
Apple 65 Watt G3 G4 Power Adapter $48.00 65W Ac Power Adapter For Apple iBook PowerBook G4 Us $14.85
Apple PowerBook/iBook G4 Ac Adapter 45W A1036 2 cords $32.00 Apple Newton H0165 Adp-9Ab 9W 7.5V 1.2A Ac Adapter $4.99
Click to see more Adapters items
Prices current as of last update, 11/19/08 2:01pm.


See also...
Audio/Video, Adapters, Apple Accessories
Other, Adapters, Apple Accessories
Power, Adapters, Apple Accessories

Home Contact Resources Exchange Links eBay