<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shigemk2</author_name>
  <author_url>https://blog.hatena.ne.jp/shigemk2/</author_url>
  <blog_title>by shigemk2</blog_title>
  <blog_url>https://www.shigemk2.com/</blog_url>
  <categories>
    <anon>Scala</anon>
  </categories>
  <description>例によってゆるよろさんのアレを、ちょっと改造する。 「unapplyって結局どういうことなの」感があったので、違う名前で同じ働きをするメソッドを用意して、動きの違いを見てみる。 import java.util.{Date,Calendar} object DateOf { // 抽出メソッド // java.util.Date型のオブジェクトの構造を年月日に分解する def unapply( d:Date ):Option[(Long,Long,Long)] = { val c = Calendar.getInstance c.setTime( d ) Some(( c.get( Calen…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.shigemk2.com%2Fentry%2Fsomehow_unapply_scala&quot; title=&quot;なんとなくのunapply - by shigemk2&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>2015-10-18 21:56:45</published>
  <title>なんとなくのunapply</title>
  <type>rich</type>
  <url>https://www.shigemk2.com/entry/somehow_unapply_scala</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
