Code example for LongSparseArray

0
 
		this.mList = mList;
 
		if (mList.hasStableIds()){
			mCheckedGroups = new LongSparseArray<Integer>();
			mCheckedChildren = new LongSparseArray<LongSparseArray<Integer>>();
		}else{ 
			mUnstableCheckedGroups = new BitSet(mList.getGroupCount());
			mUnstableCheckedChildren = new SparseArray<BitSet>();
		} 
	} 
 
 
	void setGroupState(int groupPosition, boolean isChecked){
 
		if (mList.hasStableIds())
			setGroupState(	mList.getGroupId(groupPosition),
							groupPosition,
							isChecked);
		else 
Connect your IDE to all the code out there  Get Codota for Java