Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
CodingKrishna
java-design-patterns
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
java-design-patterns
singleton
src
on
urm
User selector
All users
Datepicker
All time
Commit history
Commits on Aug 21, 2015
#107 JavaDoc for Singleton
iluwatar
committed
4bf2e3f
View commit details
Copy full SHA for 4bf2e3f
View code at this point
Browse repository at this point
Commits on Jul 9, 2015
#100 Added test case for demonstrating the thread safety issues of a
Show description for 96241f6
iluwatar
committed
96241f6
View commit details
Copy full SHA for 96241f6
View code at this point
Browse repository at this point
Commits on May 31, 2015
Changed package naming across all examples.
iluwatar
committed
8524c75
View commit details
Copy full SHA for 8524c75
View code at this point
Browse repository at this point
Commits on Mar 14, 2015
Update App.java
Show description for 649b14a
mbirkenkamp
committed
649b14a
View commit details
Copy full SHA for 649b14a
View code at this point
Browse repository at this point
Update App.java
Show description for fe625c4
mbirkenkamp
committed
fe625c4
View commit details
Copy full SHA for fe625c4
View code at this point
Browse repository at this point
Commits on Dec 6, 2014
Added unit tests for each of the patterns.
iluwatar
committed
6301e0b
View commit details
Copy full SHA for 6301e0b
View code at this point
Browse repository at this point
Commits on Dec 5, 2014
Merge branch 'master' of https://github.com/mortezaadi/java-design-patterns into mortezaadi-master
Show description for 5646937
iluwatar
committed
5646937
View commit details
Copy full SHA for 5646937
View code at this point
Browse repository at this point
add some references to class comments
mortezaadi
committed
c06c057
View commit details
Copy full SHA for c06c057
View code at this point
Browse repository at this point
Commits on Dec 4, 2014
Add DCL and Initializing on demand holder idiom.
mortezaadi
committed
dbc1ca7
View commit details
Copy full SHA for dbc1ca7
View code at this point
Browse repository at this point
Commits on Nov 26, 2014
Added comments to singleton app.
iluwatar
committed
470f3d2
View commit details
Copy full SHA for 470f3d2
View code at this point
Browse repository at this point
Added comments to lazily initialized singleton implementation.
iluwatar
committed
34bc1de
View commit details
Copy full SHA for 34bc1de
View code at this point
Browse repository at this point
Added comment to eagerly initialized singleton implementation.
iluwatar
committed
0ad5fbf
View commit details
Copy full SHA for 0ad5fbf
View code at this point
Browse repository at this point
Added book reference to singleton enum implementation.
iluwatar
committed
baf177a
View commit details
Copy full SHA for baf177a
View code at this point
Browse repository at this point
move the SO question URL
Alwayswithme
committed
11a89f8
View commit details
Copy full SHA for 11a89f8
View code at this point
Browse repository at this point
Commits on Nov 25, 2014
change comment
Alwayswithme
committed
16ac983
View commit details
Copy full SHA for 16ac983
View code at this point
Browse repository at this point
remove the getInstance method
Alwayswithme
committed
3f2cb22
View commit details
Copy full SHA for 3f2cb22
View code at this point
Browse repository at this point
Commits on Nov 24, 2014
simplified the println
Alwayswithme
committed
406d2e7
View commit details
Copy full SHA for 406d2e7
View code at this point
Browse repository at this point
enum approach of singleton
yejinchang
committed
13abf49
View commit details
Copy full SHA for 13abf49
View code at this point
Browse repository at this point
Commits on Nov 5, 2014
#12 Added private constructor to ThreadSafeLazyLoadedIvoryTower.
iluwatar
committed
862fd39
View commit details
Copy full SHA for 862fd39
View code at this point
Browse repository at this point
Commits on Oct 14, 2014
Thread-safe Singleton class
Show description for 5687976
annemsujan
committed
5687976
View commit details
Copy full SHA for 5687976
View code at this point
Browse repository at this point
Commits on Oct 13, 2014
New Singleton class
Show description for cffe592
annemsujan
committed
cffe592
View commit details
Copy full SHA for cffe592
View code at this point
Browse repository at this point
Commits on Oct 8, 2014
Formatted all files to the same standard
lordmat0
committed
3da9ad5
View commit details
Copy full SHA for 3da9ad5
View code at this point
Browse repository at this point
Commits on Oct 7, 2014
Just formatting App classes to be like the other class files on the project
lordmat0
committed
bde5b34
View commit details
Copy full SHA for bde5b34
View code at this point
Browse repository at this point
Commits on Sep 7, 2014
removed the lazy instantiation from singleton to avoid threading
Show description for d6aed14
yusufaytas
committed
d6aed14
View commit details
Copy full SHA for d6aed14
View code at this point
Browse repository at this point
Commits on Sep 6, 2014
Update IvoryTower.java
Show description for 3d55749
yusufaytas
committed
3d55749
View commit details
Copy full SHA for 3d55749
View code at this point
Browse repository at this point
Update IvoryTower.java
yusufaytas
committed
0509e48
View commit details
Copy full SHA for 0509e48
View code at this point
Browse repository at this point
Commits on Aug 31, 2014
Commented singleton example.
iluwatar
committed
54b414a
View commit details
Copy full SHA for 54b414a
View code at this point
Browse repository at this point
Commits on Aug 11, 2014
added singleton sample
iluwatar
committed
7241538
View commit details
Copy full SHA for 7241538
View code at this point
Browse repository at this point
Loading
You can’t perform that action at this time.