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

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

public class Companies {
	static private Companies theInstance = null;
	private Map<String, Company> companies = new HashMap<>();

	private Companies() {

	}

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

	public Map<String, Company> getCompanies() {
		return companies;
	}
}