Code example for AtomicInteger

Methods: getAndAdd

0
	 * starting index of that sequential list. 
	 *  
	 * @return an integer suitable to be used as a menu identifier 
	 */ 
	protected final static int getSafeMenuIdSequence(final int count) {
		return sOrdinal.getAndAdd(count);
	} 
 
	// =========================================================== 
	// Fields 
	// =========================================================== 
 
	protected final ResourceProxy mResourceProxy;
	protected final float mScale;
	private static final Rect mRect = new Rect();
 
	/** 
	 * Convenience method to draw a Drawable at an offset. x and y are pixel 
	 * coordinates. You can find appropriate coordinates from latitude/longitude 
	 * using the MapView.getProjection() method on the MapView passed to you in 
	 * draw(Canvas, MapView, boolean).