Skip to content

Releases: so-dang-cool/singleton

v4

09 Feb 10:12
Compare
Choose a tag to compare
  • Singleton<E> now implements Supplier<E>
  • Lazy singletons are now thread-safe. Eager versions already were.

Full Changelog: v3...v4

singleton v3

22 Oct 10:11
Compare
Choose a tag to compare

Singleton v3

  • Reject null for Supplier arguments. (With NullPointerException)
  • Continue to allow null for actual Singleton instances.

singleton v2

22 Oct 09:33
Compare
Choose a tag to compare

Singleton v2

  • Adds an implementation for Singleton.eager(Supplier)
  • Polishes documentation
  • Singleton.Eager and Singleton.Lazy are no longer public. (This wasn't intended in v1)

singleton v1

22 Oct 09:31
Compare
Choose a tag to compare

Singleton v1

  • Adds a simple Singleton implementation.