<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Kazzz</author_name>
  <author_url>https://blog.hatena.ne.jp/Kazzz/</author_url>
  <blog_title>Kazzz's diary</blog_title>
  <blog_url>https://kazzz.hatenablog.com/</blog_url>
  <categories>
    <anon>Java</anon>
  </categories>
  <description>Javaのアノテーションはインタフェース扱いでクラスとして扱えない、継承ができない等、Java言語の型としては不完全なため、扱いに苦労する。また、いろいろな書き方ができるため、自己流になりがちだ。 何日か前のエントリでも書いたが、やりがちなのはアノテーションの種類が増えることを嫌がって、複数の論理的な意味を一つのアノテーションに詰め込もうとすることだ。 Constraint.java public @interface Constraint { String type() default &quot;String&quot;; boolean notNull() default false; int min() …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkazzz.hatenablog.com%2Fentry%2F20101013%2Fp1&quot; title=&quot;アノテーションは難しい - Kazzz&amp;#39;s diary&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>2010-10-13 00:00:00</published>
  <title>アノテーションは難しい</title>
  <type>rich</type>
  <url>https://kazzz.hatenablog.com/entry/20101013/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
