Code example for SparseIntArray

Methods: indexOfValue

0
		return positions.get(key);
	} 
	 
	private static int getPositionFor(SparseIntArray positions, Integer value) {
		if(value != null) {
		    int pos = positions.indexOfValue(value);
		    if(pos >= 0) {
		        return pos;
		    } 
		} 
		return 0; 
	} 
	 
 
	/** 
	 * Available actions 
	 */ 
	private final static SparseIntArray FILTER_ACTION_POS = new SparseIntArray();
	static { 
		FILTER_ACTION_POS.put(0, ACTION_CANT_CALL);
		FILTER_ACTION_POS.put(1, ACTION_REPLACE);