<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ebi_j</author_name>
  <author_url>https://blog.hatena.ne.jp/ebi_j/</author_url>
  <blog_title>エキサイト TechBlog.</blog_title>
  <blog_url>https://tech.excite.co.jp/</blog_url>
  <categories>
  </categories>
  <description>こんにちは、エキサイト株式会社の蝦名です。 複数のmodelクラスなどで共通の処理を一箇所に書きたいとき、どうしますか？ 今回はJava 8から使用できるdefaultメソッドを、モデルなどの共通処理として使用する方法をご紹介します。 interfaceのdefaultメソッドで共通処理を書く モデルの例 interfaceとdefaultメソッドの例 使用の例 表示の例 使用できない、したくないパターン 最後に interfaceのdefaultメソッドで共通処理を書く モデルの例 コメント コメント番号 を持ったモデルを作成 package com.example.demo.model; …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.excite.co.jp%2Fentry%2F2022%2F09%2F20%2F143013&quot; title=&quot;【Java 8以上】interfaceのdefaultメソッドで共通処理を書く - エキサイト TechBlog.&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>2022-09-20 14:30:13</published>
  <title>【Java 8以上】interfaceのdefaultメソッドで共通処理を書く</title>
  <type>rich</type>
  <url>https://tech.excite.co.jp/entry/2022/09/20/143013</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
