Web hosting rating - Appendix F Creating HTML Documentation with javadoc (on
Appendix F Creating HTML Documentation with javadoc (on CD) 1373 67 /** 68 * Time3 constructor: another Time3 object supplied 69 * @param time Time3 object 70 * @throws Exception in the case of an invalid time 71 */ 72 public Time3( Time3 time ) throws Exception 73 { 74 setTime( time.getHour(), time.getMinute(), 75 time.getSecond() ); 76 } 77 78 // Set Methods 79 /** 80 * Set a new time value using universal time. Perform 81 * validity checks on data. Set invalid values to zero. 82 * @param h the hour 83 * @param m the minute 84 * @param s the second 85 * @see com.deitel.jhtp4.appenF.Time3#setHour 86 * @see Time3#setMinute 87 * @see #setSecond 88 * @throws Exception in the case of an invalid time 89 */ 90 public void setTime( int h, int m, int s ) throws Exception 91 { 92 setHour( h ); // set the hour 93 setMinute( m ); // set the minute 94 setSecond( s ); // set the second 95 } 96 97 /** 98 * Sets the hour 99 * @param h the hour 100 * @throws Exception in the case of an invalid time 101 */ 102 public void setHour( int h ) throws Exception 103 { 104 if ( h >= 0 && h < 24 ) 105 hour = h; 106 else 107 throw new Exception(); 108 } 109 110 /** 111 * Sets the minute 112 * @param m the minute 113 * @throws Exception in the case of an invalid time 114 */ 115 public void setMinute( int m ) throws Exception 116 { 117 if ( m >= 0 && h < 60 ) 118 minute = m; Fig. F.2A Java source code file containing documentation comments (part 3 of 5). Fig. F.
Searching for affordable and reliable webhost to host and run your web applications? Go to our java web server services and you will be pleased.