コード例 #1
0
 @Override
 public int parsePart(String value, EventRecurrence er) {
   er.count = parseIntRange(value, Integer.MIN_VALUE, Integer.MAX_VALUE, true);
   if (er.count < 0) {
     Log.d(TAG, "Invalid Count. Forcing COUNT to 1 from " + value);
     er.count = 1; // invalid count. assume one time recurrence.
   }
   return PARSED_COUNT;
 }