Code example for Map.Entry

Methods: getKey, getValue

0
		} 
	} 
 
	private void handleEntry( Entry< String, Object > entry )
	{ 
		final String key = entry.getKey();
		if( key.equals( CalendarContract.Events._ID ) )
		{ 
			id = (Long) entry.getValue();
		} 
		else if( key.equals( CalendarContract.Events.CALENDAR_ID ) )
		{ 
			calendar_id = (Integer) entry.getValue();
		} 
		else if( key.equals( CalendarContract.Events.EVENT_TIMEZONE ) )
		{ 
			event_timezone = (String) entry.getValue();
		} 
		else if( key.equals( CalendarContract.Events.DTSTART ) )
		{ 
			dt_start = (Long) entry.getValue();
		} 
		else if( key.equals( CalendarContract.Events.DTEND ) )
		{ 
			dt_end = (Long) entry.getValue();
		} 
		else if( key.equals( CalendarContract.Events.DURATION ) )
		{ 
			duration = (String) entry.getValue();// iCalUtility.parseDuration(
													// (String)entry.getValue() 
													// ); 
		} 
		else if( key.equals( CalendarContract.Events.TITLE ) )
		{ 
			title = (String) entry.getValue();
		} 
		else if( key.equals( CalendarContract.Events.DESCRIPTION ) )
		{ 
			description = (String) entry.getValue();
		} 
	} 
 
	@Override 
	public String toString()