public void add ( int years , int months , int weeks , int days , int hours , int minutes , int seconds , int millis ) { setPeriod ( FieldUtils . safeAdd ( getYears ( ) , years ) , FieldUtils . safeAdd ( getMonths ( ) , months ) , FieldUtils . safeAdd ( getWeeks ( ) , weeks ) , FieldUtils . safeAdd ( getDays ( ) , days ) , FieldUtils . safeAdd ( getHours ( ) , hours ) , FieldUtils . safeAdd ( getMinutes ( ) , minutes ) , FieldUtils . safeAdd ( getSeconds ( ) , seconds ) , FieldUtils . safeAdd ( getMillis ( ) , millis ) ) ; }
Adds to each field of this period .