public void setInto ( ReadWritablePeriod writablePeriod , Object object , Chronology chrono ) { ReadableInterval interval = ( ReadableInterval ) object ; chrono = ( chrono != null ? chrono : DateTimeUtils . getIntervalChronology ( interval ) ) ; long start = interval . getStartMillis ( ) ; long end = interval . getEndMillis ( ) ; int [ ] values = chrono . get ( writablePeriod , start , end ) ; for ( int i = 0 ; i < values . length ; i ++ ) { writablePeriod . setValue ( i , values [ i ] ) ; } }
Sets the values of the mutable duration from the specified interval .