Code example for CopyOnWriteArraySet

		private AtomicBoolean opened = new AtomicBoolean(false);
		protected boolean isAndroid;
		protected Map<String, String> params;
		protected ObjectMapper mapper = new ObjectMapper();
		protected AtomicInteger eventId = new AtomicInteger();
		protected Set<Map<String, Object>> cache = new CopyOnWriteArraySet<Map<String, Object>>();
		public String id() {
			return params.get("id");
		public String param(String key) {
			return params.get(key);
		public boolean opened() { 
			return opened.get();
Connect your IDE to all the code out there  Get Codota for Java