Duration function ( int arg0 , TimeUnit arg1 ) { Duration loc0 ; if ( arg0 == 0 ) { loc0 = ZERO_DURATIONS [ arg1 . getValue ( ) ] ; } else { loc0 = new Duration ( arg0 , arg1 ) ; } return ( loc0 ) ; }
retrieve an duration instance . use shared objects to represent common values for memory efficiency . concode_field_sep double m_duration concode_elem_sep Duration[] ZERO_DURATIONS concode_elem_sep TimeUnit m_units concode_field_sep double getDuration concode_elem_sep int hashCode concode_elem_sep boolean equals concode_elem_sep boolean durationComponentEquals concode_elem_sep TimeUnit getUnits concode_elem_sep Duration convertUnits concode_elem_sep Duration convertUnits concode_elem_sep Duration convertUnits concode_elem_sep String toString concode_elem_sep int compareTo concode_elem_sep boolean durationValueEquals