Code example for LinkedHashMap

Methods: clear

0
	private DataSetObserver mDataSetObserver = new DataSetObserver() {
		public void onChanged() { 
			calculateSectionHeaders(); 
		}; 
		public void onInvalidated() { 
			mSectionsIndexer.clear(); 
		} 
	}; 
	 
	private void calculateSectionHeaders() { 
		int i = 0;
		 
		String previous = "";
		int count = 0;
		 
		final Cursor c = getCursor();
		mSectionsIndexer.clear();
		c.moveToPosition(-1);
		 
		while (c.moveToNext()) {
			final String group = c.getString(c.getColumnIndex(DoctorMeContract.Contents.TYPE)).trim();