Code example for SparseArray

Methods: remove

0
		this.mIDMapping.put(pTexturePackTextureRegion.getID(), pTexturePackTextureRegion);
		this.mSourceMapping.put(pTexturePackTextureRegion.getSource(), pTexturePackTextureRegion);
	} 
 
	public void remove(final int pID) {
		this.mIDMapping.remove(pID);
	} 
 
	public TexturePackTextureRegion get(final int pID) {
		return this.mIDMapping.get(pID);
	} 
 
	public TexturePackTextureRegion get(final String pSource) {
		return this.mSourceMapping.get(pSource);
	} 
 
	public TexturePackTextureRegion get(final String pSource, final boolean pStripExtension) {
		if(pStripExtension) {
			final int indexOfExtension = pSource.lastIndexOf('.');
			if(indexOfExtension == -1) {
				return this.get(pSource);