public void Init ( CalendarPeriod period , T value ) { for ( int i = 0 ; i < period . getPeriods ( ) . size ( ) ; i ++ ) { Period p = period . getPeriods ( ) . get ( i ) ; periods . add ( new PeriodAssociative < T > ( p . getFrom ( ) , p . getTo ( ) , value ) ) ; } }
init from a CalendarPeriod with a value