{"id":2173,"date":"2019-09-10T09:29:37","date_gmt":"2019-09-10T06:29:37","guid":{"rendered":"http:\/\/demensdeum.com\/blog\/?p=2173"},"modified":"2024-12-16T22:32:34","modified_gmt":"2024-12-16T19:32:34","slug":"adapter-pattern","status":"publish","type":"post","link":"https:\/\/demensdeum.com\/blog\/ja\/2019\/09\/10\/adapter-pattern\/","title":{"rendered":"\u30d1\u30bf\u30fc\u30f3\u30a2\u30c0\u30d7\u30bf\u30fc"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2174\" src=\"https:\/\/demensdeum.com\/blog\/wp-content\/uploads\/2019\/09\/adapter.jpg\" alt=\"\" width=\"800\" height=\"600\" \/><\/p>\n<p><a title=\"\u30e6\u30fc\u30b6\u30fc:\u30d9\u30f3\u30b8\u30e3\u30df\u30f3\u30fb\u30cc\u30cb\u30a7\u30b9\u30fb\u30b4\u30f3\u30b5\u30ec\u30b9\" href=\"https:\/\/commons.wikimedia.org\/wiki\/File:Enchufe,_13_Amp_Plug,_UK,_2015.JPG\" target=\"_blank\" rel=\"noopener \">\u30d9\u30f3\u30cf\u30df\u30f3\u30fb\u30cc\u30cb\u30a7\u30b9\u30fb\u30b4\u30f3\u30b5\u30ec\u30b9<\/a><\/p>\n<p>\u30a2\u30c0\u30d7\u30bf\u30fc \u30d1\u30bf\u30fc\u30f3\u306f\u3001\u69cb\u9020\u8a2d\u8a08\u30d1\u30bf\u30fc\u30f3\u3092\u6307\u3057\u307e\u3059\u3002<\/p>\n<p>\u30a2\u30c0\u30d7\u30bf\u30fc\u306f\u30012 \u3064\u306e\u30af\u30e9\u30b9\/\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u9593\u306e\u30c7\u30fc\u30bf\/\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u5909\u63db\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002<\/p>\n<p>\u30cb\u30e5\u30fc\u30e9\u30eb \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u57fa\u3065\u3044\u3066\u5e97\u8217\u3067\u306e\u8cfc\u5165\u8005\u306e\u76ee\u6a19\u3092\u6c7a\u5b9a\u3059\u308b\u30b7\u30b9\u30c6\u30e0\u3092\u958b\u767a\u3057\u3066\u3044\u308b\u3068\u3057\u307e\u3059\u3002\u3053\u306e\u30b7\u30b9\u30c6\u30e0\u306f\u5e97\u8217\u306e\u30ab\u30e1\u30e9\u304b\u3089\u30d3\u30c7\u30aa \u30b9\u30c8\u30ea\u30fc\u30e0\u3092\u53d7\u4fe1\u3057\u3001\u9867\u5ba2\u306e\u884c\u52d5\u306b\u3088\u3063\u3066\u9867\u5ba2\u3092\u8b58\u5225\u3057\u3001\u30b0\u30eb\u30fc\u30d7\u306b\u5206\u985e\u3057\u307e\u3059\u3002\u30b0\u30eb\u30fc\u30d7\u306e\u7a2e\u985e &#8211;\u8cb7\u3044\u306b\u6765\u305f\uff08\u8cb7\u3044\u624b\u5019\u88dc\uff09\u3001\u305f\u3060\u898b\u308b\u3060\u3051\uff08\u898b\u7269\u4eba\uff09\u3001\u4f55\u304b\u3092\u76d7\u307f\u306b\u6765\u305f\uff08\u6ce5\u68d2\uff09\u3001\u5546\u54c1\u3092\u8fd4\u3057\u306b\u6765\u305f\uff08\u4e0d\u6e80\u3092\u6301\u3063\u305f\u8cb7\u3044\u624b\uff09\u3001\u9154\u3063\u3066\u30cf\u30a4\u306b\u306a\u3063\u305f\uff08\u4e71\u66b4\u8005\u306b\u306a\u308b\u53ef\u80fd\u6027\uff09\u3002<\/p>\n<p>\u3059\u3079\u3066\u306e\u7d4c\u9a13\u8c4a\u5bcc\u306a\u958b\u767a\u8005\u3068\u540c\u69d8\u306b\u3001\u79c1\u305f\u3061\u306f\u3001\u30d9\u30eb\u30ea\u30f3\u52d5\u7269\u5712\u306e\u52d5\u7269\u7814\u7a76\u6240\u306e\u3054\u539a\u610f\u306b\u3088\u308a\u7121\u511f\u3067\u516c\u958b\u3055\u308c\u305f\u3001\u30d3\u30c7\u30aa \u30b9\u30c8\u30ea\u30fc\u30e0\u306b\u57fa\u3065\u3044\u3066\u6abb\u306e\u4e2d\u306e\u30b5\u30eb\u306e\u7a2e\u3092\u5206\u985e\u3067\u304d\u308b\u65e2\u88fd\u306e\u30cb\u30e5\u30fc\u30e9\u30eb \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u898b\u3064\u3051\u3001\u30d3\u30c7\u30aa \u30b9\u30c8\u30ea\u30fc\u30e0\u3067\u518d\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u3057\u307e\u3057\u305f\u3002\u30b9\u30c8\u30a2\u304b\u3089\u8cfc\u5165\u3057\u3066\u3001\u52d5\u4f5c\u3059\u308b\u6700\u5148\u7aef\u306e\u30b7\u30b9\u30c6\u30e0\u3092\u5165\u624b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3061\u3087\u3063\u3068\u3057\u305f\u554f\u984c\u304c\u3042\u308a\u307e\u3059 &#8211;\u30d3\u30c7\u30aa \u30b9\u30c8\u30ea\u30fc\u30e0\u306f mpeg2 \u5f62\u5f0f\u3067\u30a8\u30f3\u30b3\u30fc\u30c9\u3055\u308c\u3066\u304a\u308a\u3001\u30b7\u30b9\u30c6\u30e0\u306f OGG Theora \u306e\u307f\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002\u79c1\u305f\u3061\u306f\u30b7\u30b9\u30c6\u30e0\u306e\u30bd\u30fc\u30b9 \u30b3\u30fc\u30c9\u3092\u6301\u3063\u3066\u3044\u307e\u305b\u3093\u3002\u79c1\u305f\u3061\u306b\u3067\u304d\u308b\u552f\u4e00\u306e\u3053\u3068\u306f &#8211; \u3067\u3059\u3002\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u5909\u66f4\u3057\u3066\u30cb\u30e5\u30fc\u30e9\u30eb \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u3057\u307e\u3059\u3002\u4f55\u3092\u3059\u308b\u304b\uff1f mpeg2 -> OGG Theora \u304b\u3089\u30b9\u30c8\u30ea\u30fc\u30e0\u3092\u8ee2\u9001\u3057\u3001\u30cb\u30e5\u30fc\u30e9\u30eb \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u9001\u4fe1\u3059\u308b\u30a2\u30c0\u30d7\u30bf\u30fc \u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u53e4\u5178\u7684\u306a\u30b9\u30ad\u30fc\u30e0\u306b\u3088\u308c\u3070\u3001\u30d1\u30bf\u30fc\u30f3\u306b\u306f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3001\u30bf\u30fc\u30b2\u30c3\u30c8\u3001\u30a2\u30c0\u30d7\u30c6\u30a3\u3001\u30a2\u30c0\u30d7\u30bf\u304c\u542b\u307e\u308c\u307e\u3059\u3002\u3053\u306e\u5834\u5408\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306f\u3001OGG Theora \u3067\u30d3\u30c7\u30aa \u30b9\u30c8\u30ea\u30fc\u30e0\u3092\u53d7\u4fe1\u3059\u308b\u30cb\u30e5\u30fc\u30e9\u30eb \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3067\u3042\u308a\u3001\u30bf\u30fc\u30b2\u30c3\u30c8\u306f &#8211; \u3067\u3059\u3002\u5bfe\u8a71\u3059\u308b\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3001adaptee &#8211; mpeg2 \u3067\u30d3\u30c7\u30aa \u30b9\u30c8\u30ea\u30fc\u30e0\u3092\u9001\u4fe1\u3059\u308b\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3001\u30a2\u30c0\u30d7\u30bf\u30fc &#8211; mpeg2 \u3092 OGG Theora \u306b\u5909\u63db\u3057\u3001\u30bf\u30fc\u30b2\u30c3\u30c8 \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u7d4c\u7531\u3067\u9001\u4fe1\u3057\u307e\u3059\u3002<\/p>\n<p>\u3059\u3079\u3066\u304c\u7c21\u5358\u306b\u601d\u3048\u307e\u3059\u304b?<\/p>\n<h3>\u30bd\u30fc\u30b9<\/h3>\n<p><a href=\"https:\/\/ru.wikipedia.org\/wiki\/Adapter_(design_pattern)\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/ru.wikipedia.org\/wiki\/Adapter_ (\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3)<\/a><br \/><a href=\"https:\/\/refactoring.guru\/ru\/design-patterns\/adapter\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/refactoring.guru\/ru\/design-patterns\/adapter<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30d9\u30f3\u30cf\u30df\u30f3\u30fb\u30cc\u30cb\u30a7\u30b9\u30fb\u30b4\u30f3\u30b5\u30ec\u30b9 \u30a2\u30c0\u30d7\u30bf\u30fc \u30d1\u30bf\u30fc\u30f3\u306f\u3001\u69cb\u9020\u8a2d\u8a08\u30d1\u30bf\u30fc\u30f3\u3092\u6307\u3057\u307e\u3059\u3002 \u30a2\u30c0\u30d7\u30bf\u30fc\u306f\u30012 \u3064\u306e\u30af\u30e9\u30b9\/\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u9593\u306e\u30c7\u30fc\u30bf\/\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u5909\u63db\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002 \u30cb\u30e5\u30fc\u30e9\u30eb \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u57fa\u3065\u3044\u3066\u5e97\u8217\u3067\u306e\u8cfc\u5165\u8005\u306e\u76ee\u6a19\u3092\u6c7a\u5b9a\u3059\u308b\u30b7\u30b9\u30c6\u30e0\u3092\u958b\u767a\u3057\u3066\u3044\u308b\u3068\u3057\u307e\u3059\u3002\u3053\u306e\u30b7\u30b9\u30c6\u30e0\u306f\u5e97\u8217\u306e\u30ab\u30e1\u30e9\u304b\u3089\u30d3\u30c7\u30aa \u30b9\u30c8\u30ea\u30fc\u30e0\u3092\u53d7\u4fe1\u3057\u3001\u9867\u5ba2\u306e\u884c\u52d5\u306b\u3088\u3063\u3066\u9867\u5ba2\u3092\u8b58\u5225\u3057\u3001\u30b0\u30eb\u30fc\u30d7\u306b\u5206\u985e\u3057\u307e\u3059\u3002\u30b0\u30eb\u30fc\u30d7\u306e\u7a2e\u985e &#8211;\u8cb7\u3044\u306b\u6765\u305f\uff08\u8cb7\u3044\u624b\u5019\u88dc\uff09\u3001\u305f\u3060\u898b\u308b\u3060\u3051\uff08\u898b\u7269\u4eba\uff09\u3001\u4f55\u304b\u3092\u76d7\u307f\u306b\u6765\u305f\uff08\u6ce5\u68d2\uff09\u3001\u5546\u54c1\u3092\u8fd4\u3057\u306b\u6765\u305f\uff08\u4e0d\u6e80\u3092\u6301\u3063\u305f\u8cb7\u3044\u624b\uff09\u3001\u9154\u3063\u3066\u30cf\u30a4\u306b\u306a\u3063\u305f\uff08\u4e71\u66b4\u8005\u306b\u306a\u308b\u53ef\u80fd\u6027\uff09\u3002 \u3059\u3079\u3066\u306e\u7d4c\u9a13\u8c4a\u5bcc\u306a\u958b\u767a\u8005\u3068\u540c\u69d8\u306b\u3001\u79c1\u305f\u3061\u306f\u3001\u30d9\u30eb\u30ea\u30f3\u52d5\u7269\u5712\u306e\u52d5\u7269\u7814\u7a76\u6240\u306e\u3054\u539a\u610f\u306b\u3088\u308a\u7121\u511f\u3067\u516c\u958b\u3055\u308c\u305f\u3001\u30d3\u30c7\u30aa \u30b9\u30c8\u30ea\u30fc\u30e0\u306b\u57fa\u3065\u3044\u3066\u6abb\u306e\u4e2d\u306e\u30b5\u30eb\u306e\u7a2e\u3092\u5206\u985e\u3067\u304d\u308b\u65e2\u88fd\u306e\u30cb\u30e5\u30fc\u30e9\u30eb \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u898b\u3064\u3051\u3001\u30d3\u30c7\u30aa \u30b9\u30c8\u30ea\u30fc\u30e0\u3067\u518d\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u3057\u307e\u3057\u305f\u3002\u30b9\u30c8\u30a2\u304b\u3089\u8cfc\u5165\u3057\u3066\u3001\u52d5\u4f5c\u3059\u308b\u6700\u5148\u7aef\u306e\u30b7\u30b9\u30c6\u30e0\u3092\u5165\u624b\u3057\u3066\u304f\u3060\u3055\u3044\u3002 \u3061\u3087\u3063\u3068\u3057\u305f\u554f\u984c\u304c\u3042\u308a\u307e\u3059 &#8211;\u30d3\u30c7\u30aa \u30b9\u30c8\u30ea\u30fc\u30e0\u306f mpeg2 \u5f62\u5f0f\u3067\u30a8\u30f3\u30b3\u30fc\u30c9\u3055\u308c\u3066\u304a\u308a\u3001\u30b7\u30b9\u30c6\u30e0\u306f OGG Theora \u306e\u307f\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002\u79c1\u305f\u3061\u306f\u30b7\u30b9\u30c6\u30e0\u306e\u30bd\u30fc\u30b9 \u30b3\u30fc\u30c9\u3092\u6301\u3063\u3066\u3044\u307e\u305b\u3093\u3002\u79c1\u305f\u3061\u306b\u3067\u304d\u308b\u552f\u4e00\u306e\u3053\u3068\u306f &#8211; \u3067\u3059\u3002\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3092\u5909\u66f4\u3057\u3066\u30cb\u30e5\u30fc\u30e9\u30eb \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u30c8\u30ec\u30fc\u30cb\u30f3\u30b0\u3057\u307e\u3059\u3002\u4f55\u3092\u3059\u308b\u304b\uff1f mpeg2 -> OGG Theora \u304b\u3089\u30b9\u30c8\u30ea\u30fc\u30e0\u3092\u8ee2\u9001\u3057\u3001\u30cb\u30e5\u30fc\u30e9\u30eb \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u306b\u9001\u4fe1\u3059\u308b\u30a2\u30c0\u30d7\u30bf\u30fc \u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002 \u53e4\u5178\u7684\u306a\u30b9\u30ad\u30fc\u30e0\u306b\u3088\u308c\u3070\u3001\u30d1\u30bf\u30fc\u30f3\u306b\u306f\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3001\u30bf\u30fc\u30b2\u30c3\u30c8\u3001\u30a2\u30c0\u30d7\u30c6\u30a3\u3001\u30a2\u30c0\u30d7\u30bf\u304c\u542b\u307e\u308c\u307e\u3059\u3002\u3053\u306e\u5834\u5408\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306f\u3001OGG Theora \u3067\u30d3\u30c7\u30aa \u30b9\u30c8\u30ea\u30fc\u30e0\u3092\u53d7\u4fe1\u3059\u308b\u30cb\u30e5\u30fc\u30e9\u30eb \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3067\u3042\u308a\u3001\u30bf\u30fc\u30b2\u30c3\u30c8\u306f &#8211; \u3067\u3059\u3002\u5bfe\u8a71\u3059\u308b\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3001adaptee &#8211; mpeg2 \u3067\u30d3\u30c7\u30aa \u30b9\u30c8\u30ea\u30fc\u30e0\u3092\u9001\u4fe1\u3059\u308b\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3001\u30a2\u30c0\u30d7\u30bf\u30fc &#8211; mpeg2 \u3092 OGG Theora \u306b\u5909\u63db\u3057\u3001\u30bf\u30fc\u30b2\u30c3\u30c8 \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u7d4c\u7531\u3067\u9001\u4fe1\u3057\u307e\u3059\u3002 \u3059\u3079\u3066\u304c\u7c21\u5358\u306b\u601d\u3048\u307e\u3059\u304b? \u30bd\u30fc\u30b9 https:\/\/ru.wikipedia.org\/wiki\/Adapter_ (\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3)https:\/\/refactoring.guru\/ru\/design-patterns\/adapter<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[61,52],"tags":[115,95],"class_list":["post-2173","post","type-post","status-publish","format-standard","hentry","category-techie","category-tutorials","tag-adapter","tag-patterns","entry"],"translation":{"provider":"WPGlobus","version":"3.0.2","language":"ja","enabled_languages":["en","ru","zh","de","fr","ja","pt","hi"],"languages":{"en":{"title":true,"content":true,"excerpt":false},"ru":{"title":true,"content":true,"excerpt":false},"zh":{"title":true,"content":true,"excerpt":false},"de":{"title":true,"content":true,"excerpt":false},"fr":{"title":true,"content":true,"excerpt":false},"ja":{"title":true,"content":true,"excerpt":false},"pt":{"title":true,"content":true,"excerpt":false},"hi":{"title":false,"content":false,"excerpt":false}}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/posts\/2173","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/comments?post=2173"}],"version-history":[{"count":8,"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/posts\/2173\/revisions"}],"predecessor-version":[{"id":3945,"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/posts\/2173\/revisions\/3945"}],"wp:attachment":[{"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/media?parent=2173"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/categories?post=2173"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/demensdeum.com\/blog\/ja\/wp-json\/wp\/v2\/tags?post=2173"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}