mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-10-12 08:14:13 +00:00
docs: update registry
This commit is contained in:
1 parent
cfbb5af821
commit
e731bdb998
2 files changed
+105
-22
No files matched your search
@@ -26,18 +26,16 @@ package com.iluwatar.registry;
|
||||
|
||||
import java.util.Map;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* CustomerRegistry class used to store/access {@link Customer} objects.
|
||||
*/
|
||||
public final class CustomerRegistry {
|
||||
|
||||
@Getter
|
||||
private static final CustomerRegistry instance = new CustomerRegistry();
|
||||
|
||||
public static CustomerRegistry getInstance() {
|
||||
return instance;
|
||||
}
|
||||
|
||||
private final Map<String, Customer> customerMap;
|
||||
|
||||
private CustomerRegistry() {
|
||||
|
||||
Reference in new issue
Block a user