<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>methane</author_name>
  <author_url>https://blog.hatena.ne.jp/methane/</author_url>
  <blog_title>methaneのブログ</blog_title>
  <blog_url>https://methane.hatenablog.jp/</blog_url>
  <categories>
  </categories>
  <description>http://d.hatena.ne.jp/methane/20051111/1131720867 の続きJavaで、継承による対象性・推移性破壊を怖がらず、比較演算を定義する方法。Comparableをimplementsしたクラスを作ると、継承したクラスを作られたときに対象性・推移性を保つのに苦労する。finalじゃないクラスはComparableをimplementsせずに、public staticな内部クラスとしてComparatorを用意しよう。（C++で２項演算子をfriendな外部関数としてオーバーロードするのと同じ雰囲気） public class Person { priv…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmethane.hatenablog.jp%2Fentry%2F20051113%2F1131874692&quot; title=&quot; Javaで2項演算. - methaneのブログ&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>2005-11-13 18:38:12</published>
  <title> Javaで2項演算.</title>
  <type>rich</type>
  <url>https://methane.hatenablog.jp/entry/20051113/1131874692</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
