2009-08-03から1日間の記事一覧
Java で Prototype パターンを実現するために必要な、clone() メソッドについて記述します。 clone() メソッドの仕様 いずれも、必須ではないそうです。(´・ω・) x.clone() != x を満たすこと。 x.clone().getClass() == x.getClass() を満たすこと。 x.cl…
Java で Prototype パターンを実現するために必要な、clone() メソッドについて記述します。 clone() メソッドの仕様 いずれも、必須ではないそうです。(´・ω・) x.clone() != x を満たすこと。 x.clone().getClass() == x.getClass() を満たすこと。 x.cl…