Newer
Older
Architecture / src / main / java / architectureTest / Customers.java
m1924003 on 16 May 2019 466 bytes package名変更
package architectureTest;

import java.util.HashMap;
import java.util.Map;

public class Customers {
	static private Customers theInstance = null;
	private Map<String, Customer> customers = new HashMap<>();

	private Customers() {

	}

	static public Customers getInstance() {
		if (theInstance == null) {
			theInstance = new Customers();
		}
		return theInstance;
	}

	public Map<String, Customer> getCustomers() {
		return customers;
	}

}