code: public static List<CallLogEntry> getAllLogsOfDuration(List<CallLogEntry> logs, int duration, boolean greaterthan) {
  		List<CallLogEntry> list = new ArrayList<CallLogEntry>();
  		for(CallLogEntry log : logs) {
  			if(log.duration<duration ^ greaterthan) {
  			    list.add(log);
  			}
  		}
  		return list;
  	}
docs: duration specifies call duration to test against.
  @param duration
  greaterthan set to true finds call durations greater than or equal to specified. false
  finds those less than.
  @param greaterthan
  @return