<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>akira2kun</author_name>
  <author_url>https://blog.hatena.ne.jp/akira2kun/</author_url>
  <blog_title>技術とか戦略とか</blog_title>
  <blog_url>https://akira2kun.hatenablog.com/</blog_url>
  <categories>
    <anon>java</anon>
  </categories>
  <description>Visitorパターンは、Compositeパターンを派生させたパターンであり、入れ物・中身の構造に対して複数の処理を記述する必要がある時に適用します。Entryクラスとは別にVisitorクラスを作成し、Visitorクラスの方に処理を記述することで、構造と処理を分けることができます。 【サンプルコード】・Element.java// Visitorの受け入れメソッドを定義するインターフェースpublic interface Element { public abstract void accept(Visitor visitor);} ・Entry.java// 入れ物と中身を同一視するた…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fakira2kun.hatenablog.com%2Fentry%2F2020%2F02%2F29%2F004426&quot; title=&quot;javaでのVisitorパターン - 技術とか戦略とか&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>2020-02-29 00:44:26</published>
  <title>javaでのVisitorパターン</title>
  <type>rich</type>
  <url>https://akira2kun.hatenablog.com/entry/2020/02/29/004426</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
