- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {FileOutputStream f =
File file;new FileOutputStream(file)
String name;new FileOutputStream(name)
File file;new FileOutputStream(file, true)
- Smart code suggestions by Codota
}
/** * Returns a list of periods for each of the available period types defined by * {@link PeriodType#PERIOD_TYPES} in matching order relative to the given period. * * @param period the period. * @param calendar the calendar. * @return a list of periods. */ public static List<Period> getPeriodTypePeriods( Period period, org.hisp.dhis.calendar.Calendar calendar ) { List<Period> periods = new ArrayList<>(); PeriodType periodType = period.getPeriodType(); for ( PeriodType type : PeriodType.PERIOD_TYPES ) { if ( periodType.getFrequencyOrder() < type.getFrequencyOrder() || periodType.equals( type ) ) { periods.add( IdentifiableObjectUtils.getPeriodByPeriodType( period, type, calendar ) ); } else { periods.add( null ); } } return periods; }