{"id":827,"date":"2006-07-02T17:57:04","date_gmt":"2006-07-03T00:57:04","guid":{"rendered":"http:\/\/whizkidnine.com\/?p=827"},"modified":"2019-11-09T16:41:20","modified_gmt":"2019-11-09T21:41:20","slug":"design-patterns-in-java-sample-chapter-adapter","status":"publish","type":"post","link":"https:\/\/xp123.com\/design-patterns-in-java-sample-chapter-adapter\/","title":{"rendered":"Design Patterns in Java \u2013 Sample Chapter \u2013 Adapter"},"content":{"rendered":"<p>Steve Metsker&#8217;s and my recent book, <em><a href=\"https:\/\/www.amazon.com\/exec\/obidos\/ASIN\/0321333020\/xp123com\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"amazon\">Design Patterns in Java<\/a><\/em>, has had a sample chapter posted at InformIT: <a href=\"http:\/\/www.informit.com\/articles\/article.asp?p=481863\" target=\"_blank\" rel=\"noopener noreferrer\">Adapter<\/a>.<\/p>\n<p>If you&#8217;re not familiar with Adapters, or need to brush up on them, you might find this chapter helpful. (The extract didn&#8217;t include our solutions; let me know if you need help.)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sample chapter &#8211; Adapter. <a class=\"more-link\" href=\"https:\/\/xp123.com\/design-patterns-in-java-sample-chapter-adapter\/\">Continue reading <span class=\"screen-reader-text\">  Design Patterns in Java \u2013 Sample Chapter \u2013 Adapter<\/span><span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_wp_convertkit_post_meta":{"form":"-1","landing_page":"0","tag":"0","restrict_content":"0"},"footnotes":""},"categories":[1],"tags":[9,26,47,69,77,83],"class_list":["post-827","post","type-post","status-publish","format-standard","hentry","category-xp123","tag-author","tag-design","tag-java","tag-patterns","tag-prog","tag-reviews"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Design Patterns in Java \u2013 Sample Chapter \u2013 Adapter - XP123<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/xp123.com\/design-patterns-in-java-sample-chapter-adapter\/\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Bill Wake\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/xp123.com\\\/design-patterns-in-java-sample-chapter-adapter\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/xp123.com\\\/design-patterns-in-java-sample-chapter-adapter\\\/\"},\"author\":{\"name\":\"Bill Wake\",\"@id\":\"https:\\\/\\\/xp123.com\\\/#\\\/schema\\\/person\\\/72474af0de7f699327fcff15bebf04c9\"},\"headline\":\"Design Patterns in Java \u2013 Sample Chapter \u2013 Adapter\",\"datePublished\":\"2006-07-03T00:57:04+00:00\",\"dateModified\":\"2019-11-09T21:41:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/xp123.com\\\/design-patterns-in-java-sample-chapter-adapter\\\/\"},\"wordCount\":61,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/xp123.com\\\/#\\\/schema\\\/person\\\/72474af0de7f699327fcff15bebf04c9\"},\"keywords\":[\"author\",\"design\",\"Java\",\"patterns\",\"programmer\",\"reviews\"],\"articleSection\":[\"xp123.com\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/xp123.com\\\/design-patterns-in-java-sample-chapter-adapter\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/xp123.com\\\/design-patterns-in-java-sample-chapter-adapter\\\/\",\"url\":\"https:\\\/\\\/xp123.com\\\/design-patterns-in-java-sample-chapter-adapter\\\/\",\"name\":\"Design Patterns in Java \u2013 Sample Chapter \u2013 Adapter - XP123\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/xp123.com\\\/#website\"},\"datePublished\":\"2006-07-03T00:57:04+00:00\",\"dateModified\":\"2019-11-09T21:41:20+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/xp123.com\\\/design-patterns-in-java-sample-chapter-adapter\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/xp123.com\\\/design-patterns-in-java-sample-chapter-adapter\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/xp123.com\\\/design-patterns-in-java-sample-chapter-adapter\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/xp123.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Design Patterns in Java \u2013 Sample Chapter \u2013 Adapter\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/xp123.com\\\/#website\",\"url\":\"https:\\\/\\\/xp123.com\\\/\",\"name\":\"XP123\",\"description\":\"Exploring Extreme Programming\",\"publisher\":{\"@id\":\"https:\\\/\\\/xp123.com\\\/#\\\/schema\\\/person\\\/72474af0de7f699327fcff15bebf04c9\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/xp123.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/xp123.com\\\/#\\\/schema\\\/person\\\/72474af0de7f699327fcff15bebf04c9\",\"name\":\"Bill Wake\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/xp123.com\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/bill2012.jpeg\",\"url\":\"https:\\\/\\\/xp123.com\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/bill2012.jpeg\",\"contentUrl\":\"https:\\\/\\\/xp123.com\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/bill2012.jpeg\",\"width\":200,\"height\":200,\"caption\":\"Bill Wake\"},\"logo\":{\"@id\":\"https:\\\/\\\/xp123.com\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/bill2012.jpeg\"},\"sameAs\":[\"http:\\\/\\\/xp123.com\"],\"url\":\"https:\\\/\\\/xp123.com\\\/author\\\/bill\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Design Patterns in Java \u2013 Sample Chapter \u2013 Adapter - XP123","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/xp123.com\/design-patterns-in-java-sample-chapter-adapter\/","twitter_misc":{"Written by":"Bill Wake"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/xp123.com\/design-patterns-in-java-sample-chapter-adapter\/#article","isPartOf":{"@id":"https:\/\/xp123.com\/design-patterns-in-java-sample-chapter-adapter\/"},"author":{"name":"Bill Wake","@id":"https:\/\/xp123.com\/#\/schema\/person\/72474af0de7f699327fcff15bebf04c9"},"headline":"Design Patterns in Java \u2013 Sample Chapter \u2013 Adapter","datePublished":"2006-07-03T00:57:04+00:00","dateModified":"2019-11-09T21:41:20+00:00","mainEntityOfPage":{"@id":"https:\/\/xp123.com\/design-patterns-in-java-sample-chapter-adapter\/"},"wordCount":61,"commentCount":0,"publisher":{"@id":"https:\/\/xp123.com\/#\/schema\/person\/72474af0de7f699327fcff15bebf04c9"},"keywords":["author","design","Java","patterns","programmer","reviews"],"articleSection":["xp123.com"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/xp123.com\/design-patterns-in-java-sample-chapter-adapter\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/xp123.com\/design-patterns-in-java-sample-chapter-adapter\/","url":"https:\/\/xp123.com\/design-patterns-in-java-sample-chapter-adapter\/","name":"Design Patterns in Java \u2013 Sample Chapter \u2013 Adapter - XP123","isPartOf":{"@id":"https:\/\/xp123.com\/#website"},"datePublished":"2006-07-03T00:57:04+00:00","dateModified":"2019-11-09T21:41:20+00:00","breadcrumb":{"@id":"https:\/\/xp123.com\/design-patterns-in-java-sample-chapter-adapter\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/xp123.com\/design-patterns-in-java-sample-chapter-adapter\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/xp123.com\/design-patterns-in-java-sample-chapter-adapter\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/xp123.com\/"},{"@type":"ListItem","position":2,"name":"Design Patterns in Java \u2013 Sample Chapter \u2013 Adapter"}]},{"@type":"WebSite","@id":"https:\/\/xp123.com\/#website","url":"https:\/\/xp123.com\/","name":"XP123","description":"Exploring Extreme Programming","publisher":{"@id":"https:\/\/xp123.com\/#\/schema\/person\/72474af0de7f699327fcff15bebf04c9"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/xp123.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/xp123.com\/#\/schema\/person\/72474af0de7f699327fcff15bebf04c9","name":"Bill Wake","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/xp123.com\/wp-content\/uploads\/2022\/09\/bill2012.jpeg","url":"https:\/\/xp123.com\/wp-content\/uploads\/2022\/09\/bill2012.jpeg","contentUrl":"https:\/\/xp123.com\/wp-content\/uploads\/2022\/09\/bill2012.jpeg","width":200,"height":200,"caption":"Bill Wake"},"logo":{"@id":"https:\/\/xp123.com\/wp-content\/uploads\/2022\/09\/bill2012.jpeg"},"sameAs":["http:\/\/xp123.com"],"url":"https:\/\/xp123.com\/author\/bill\/"}]}},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/xp123.com\/wp-json\/wp\/v2\/posts\/827","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/xp123.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xp123.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xp123.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/xp123.com\/wp-json\/wp\/v2\/comments?post=827"}],"version-history":[{"count":2,"href":"https:\/\/xp123.com\/wp-json\/wp\/v2\/posts\/827\/revisions"}],"predecessor-version":[{"id":3868,"href":"https:\/\/xp123.com\/wp-json\/wp\/v2\/posts\/827\/revisions\/3868"}],"wp:attachment":[{"href":"https:\/\/xp123.com\/wp-json\/wp\/v2\/media?parent=827"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xp123.com\/wp-json\/wp\/v2\/categories?post=827"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xp123.com\/wp-json\/wp\/v2\/tags?post=827"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}