Code example for HashSet

0
		Paused,
		Stopped
	} 
	 
	protected State state;
	public static Set<OFAndroidObject> ofObjects = new HashSet<OFAndroidObject>();
	 
	public OFAndroidObject(){ 
		state = State.Created;
		ofObjects.add(this);
	} 
	 
    public void onPause(){ 
    	appPause(); 
    	state = State.Paused;
    } 
    public void onResume(){ 
    	appResume(); 
    	state = State.Running;
    } 
    public void onStop(){