Code example for TreeMap

Methods: containsKeysubMap

0
		position = pos;
		if (headerType == getViewType(pos)) {
			return true; 
		} else { 
			// Correct for offset 
			cursorPos = position - headers.subMap(0, pos + 1).size();
			return cursor.moveToPosition(cursorPos);
		} 
	} 
 
	/** 
	 *  
	 * @return 0 for normal content from cursor, 1 for header 
	 */ 
	public int getViewType() { 
		return getViewType(position);
	} 
 
	/** 
	 *  
	 * @return 0 for normal content from cursor, 1 for header 
	 */ 
	public int getViewType(int pos) {
		if (headers.containsKey(pos))
			return headerType;
		else 
			return itemType;
	} 
 
Experience pair programming with AI  Get Codota for Java