<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sugyan</author_name>
  <author_url>https://blog.hatena.ne.jp/sugyan/</author_url>
  <blog_title>すぎゃーんメモ</blog_title>
  <blog_url>https://memo.sugyan.com/</blog_url>
  <categories>
    <anon>Java</anon>
  </categories>
  <description>コンストラクタの引数指定 - すぎゃーんメモ とりあえず、引数なしコンストラクタはprivateではなく、例外にしてみる。 public class Hoge { private String str; public Hoge() { throw new IllegalArgumentException(); } public Hoge(String str) { this.str = str; } } もっと良い方法が分かったら追記する。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmemo.sugyan.com%2Fentry%2F20080608%2F1212908454&quot; title=&quot;引数なしコンストラクタを禁止する - すぎゃーんメモ&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>2008-06-08 16:00:54</published>
  <title>引数なしコンストラクタを禁止する</title>
  <type>rich</type>
  <url>https://memo.sugyan.com/entry/20080608/1212908454</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
