<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shaw27</author_name>
  <author_url>https://blog.hatena.ne.jp/shaw27/</author_url>
  <blog_title>はてはてな</blog_title>
  <blog_url>https://shaw27.hatenadiary.org/</blog_url>
  <categories>
    <anon>JAVA</anon>
    <anon>読書</anon>
  </categories>
  <description>容器と中身を同一視し、再帰的な構造を作りますよパターン。再帰ｷﾀｰｰｰ。リカーシブなモノはもうそれだけでカッコイイ。大抵の場合カッコイイ。帰納、再帰ｶｯｺﾖｽ。しかし、再帰的という言葉から自分のインスタンスを自ら生成して、それから…と、意味不明な思考の迷路に迷い込んでしまいギブアップ、んー。わざわざファイルとディレクトリの話を振ってくれているんだから落ち着いて考えなさいよ、という話。このパターンでは抽象クラスComponentに対して、そのインスタンスを持ち（集約）、抽象メソッドも全て実装したサブクラスCompositeとそうでない（一部のメソッドのみ実装するなどした）サブクラスLeafを用意…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshaw27.hatenadiary.org%2Fentry%2F20060125%2F1138201405&quot; title=&quot;Compositeパターン - はてはてな&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2006-01-25 00:03:25</published>
  <title>Compositeパターン</title>
  <type>rich</type>
  <url>https://shaw27.hatenadiary.org/entry/20060125/1138201405</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
