question: public static int findMethodInReminderList ( ArrayList < Integer > values , int method ) { int index = values . indexOf ( method ) ; if ( index == - 1 ) { index = 0 ; } return index ; }
target:  Finds the index of the given method in the "methods" list.  If the method isn't present (perhaps because we don't think it's allowed for this calendar), we return zero (the first item in the list). <p> With the current definitions, this effectively converts DEFAULT and unsupported method types to ALERT.