<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>keichanzahorumon0405</author_name>
  <author_url>https://blog.hatena.ne.jp/keichanzahorumon0405/</author_url>
  <blog_title>技術開発日記</blog_title>
  <blog_url>https://kechanzahorumon.hatenadiary.com/</blog_url>
  <categories>
    <anon>Java</anon>
  </categories>
  <description>そもそもOptionalとは OptionalはT型のオブジェクトに対するラッパーで、オブジェクトがnullかどうかを判断したり、nullだった場合のデフォルト値を設定できるJava8から追加されたクラス。 Nullオブジェクトに近い感じでしょうか。 どういったところで使うのか ・Streamメソッドの返却値としてOptional型を返すのがいくつかあるので(findFirst,findAny,min,max,flatMap,etc...) その返却値に対して処理を追加したいとき。・メソッドの返却値がnullである可能性を明示的に示したいとき。・煩わしいnullチェックの処理を除きたいとき。・…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkechanzahorumon.hatenadiary.com%2Fentry%2F2015%2F03%2F13%2F175702&quot; title=&quot;Java8のOptionalの使い所 - 技術開発日記&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-03-13 17:57:02</published>
  <title>Java8のOptionalの使い所</title>
  <type>rich</type>
  <url>https://kechanzahorumon.hatenadiary.com/entry/2015/03/13/175702</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
