private boolean isTypedTimeFullyLegal(){
  if (mIs24HourMode) {
    int[] values=getEnteredTime(null);
    return (values[0] >= 0 && values[1] >= 0 && values[1] < 60);
  }
 else {
    return (mTypedTimes.contains(getAmOrPmKeyCode(HALF_DAY_1)) || mTypedTimes.contains(getAmOrPmKeyCode(HALF_DAY_2)));
  }
}

private boolean isTypedTimeFullyLegal ( ) { if ( mIs24HourMode ) { int [ ] values = getEnteredTime ( null ) ; return ( values [ 0 ] >= 0 && values [ 1 ] >= 0 && values [ 1 ] < 60 ) ; } else { return ( mTypedTimes . contains ( getAmOrPmKeyCode ( HALF_DAY_1 ) ) || mTypedTimes . contains ( getAmOrPmKeyCode ( HALF_DAY_2 ) ) ) ; } }
check if the time that has been typed so far is completely legal , as is .
