public MapMap<T, U, V> putEntry( S key1, T key2, U key3, V value ) { MapMap<T, U, V> map = this.get( key1 ); map = map == null ? new MapMap<>() : map; map.putEntry( key2, key3, value ); return this.put( key1, map ); }
public void putEntries( S key1, MapMap<T, U, V> m ) { MapMap<T, U, V> map = this.get( key1 ); map = map == null ? new MapMap<>() : map; map.putMap( m ); this.put( key1, map ); }
MapMap<Integer, Integer, Boolean> ouDataPresent = dataPresent.get( organisationUnit.getId() );
/** * Evaluates the skip test expression for any sample periods in which * skip test data occurs. For any combination of period and attribute * option combo where the skip test is true, removes all sample data with * that combination of period and attribute option combo. * * @param dataMap all data values (both skip and aggregate). * @param skipTest the skip test expression. * @param constantMap constants to use in skip expression if needed. */ private void applySkipTest( MapMapMap<Period, String, DimensionalItemObject, Double> dataMap, Expression skipTest, Map<String, Double> constantMap ) { if ( skipTest != null && dataMap != null ) { for ( Period period : dataMap.keySet() ) { MapMap<String, DimensionalItemObject, Double> periodData = dataMap.get( period ); for ( String aoc : periodData.keySet() ) { Double testValue = expressionService.getExpressionValue( skipTest, periodData.get( aoc ), constantMap, null, period.getDaysInPeriod() ); if ( testValue != null && !MathUtils.isZero( testValue ) ) { periodData.remove( aoc ); } } } } }
MapMap<String, DimensionalItemObject, Double> periodValues = dataMap.get( period );
nonAggregateDataMap.get( period ), new MapMap<>() );