2023-07-01から1ヶ月間の記事一覧
概要 Singletonの実装方法を探している際に見つけたエレガントで感動した書き方について紹介する。 一般的なSingletonの実装方法 下記に一般的な実装方法を紹介する。 public class GeneralSingleton { private static GeneralSingleton instance = new Gene…
概要 Singletonの実装方法を探している際に見つけたエレガントで感動した書き方について紹介する。 一般的なSingletonの実装方法 下記に一般的な実装方法を紹介する。 public class GeneralSingleton { private static GeneralSingleton instance = new Gene…