public static Timeout sum ( Timeout ... timeouts ) { long sum = 0 ; for ( Timeout timeout : timeouts ) if ( timeout != null ) sum += timeout . getMilliseconds ( ) ; if ( sum != 0 ) return new Timeout ( sum ) ; else return Timeout . ZERO ; }
Adds together all the supplied timeouts