@Override public int parsePart(String value, EventRecurrence er) { Integer freq = sParseFreqMap.get(value); if (freq == null) { throw new InvalidFormatException("Invalid FREQ value: " + value); } er.freq = freq; return PARSED_FREQ; }