@SafeVarargs public static <S, T, U, V> MapMapMap<S, T, U, V> ofEntries( Map.Entry<S, MapMap<T, U, V>>... entries ) { MapMapMap<S, T, U, V> map = new MapMapMap<>(); for ( Map.Entry<S, MapMap<T, U, V>> entry : entries ) { map.put( entry.getKey(), entry.getValue() ); } return map; } }
public MapMapMap<S, T, U, V> putEntry( R key1, S key2, T key3, U key4, V value ) { MapMapMap<S, T, U, V> map = this.get( key1 ); map = map == null ? new MapMapMap<>() : map; map.putEntry( key2, key3, key4, value ); return this.put( key1, map ); }
public void putEntries( R key1, MapMapMap<S, T, U, V> m ) { MapMapMap<S, T, U, V> map = this.get( key1 ); map = map == null ? new MapMapMap<>() : map; map.putMap( m ); this.put( key1, map ); }
DataQueryParams params, boolean hasAttributeOptions ) MapMapMap<Integer, String, DimensionalItemObject, Double> map = new MapMapMap<>();
return new MapMapMap<>();
/** * Gets aggregated event data for the given parameters. * * @param hasAttributeOptions whether the event data has attribute options. */ private MapMapMap<Integer, String, DimensionalItemObject, Double> getEventMap( boolean hasAttributeOptions, Set<DimensionalItemObject> eventItems ) { if ( eventItems.isEmpty() ) { return new MapMapMap<>(); } DataQueryParams.Builder paramsBuilder = DataQueryParams.newBuilder() .withDataDimensionItems( Lists.newArrayList( eventItems ) ) .withAttributeOptionCombos( Lists.newArrayList() ) .withFilterPeriods( Lists.newArrayList( period ) ) .withOrganisationUnits( orgUnits ); if ( hasAttributeOptions ) { paramsBuilder.withAttributeOptionCombos( Lists.newArrayList() ); } return getEventData( paramsBuilder.build(), hasAttributeOptions ); }
MapMapMap<Integer, Integer, Integer, Boolean> dataPresent = new MapMapMap<>();
Set<String> defaultOptionComboAsSet = Sets.newHashSet( categoryService.getDefaultCategoryOptionCombo().getUid() ); Map4<OrganisationUnit, Period, String, DimensionalItemObject, Double> emptyMap4 = new Map4<>(); MapMapMap<Period, String, DimensionalItemObject, Double> emptyMapMapMap = new MapMapMap<>(); boolean usingAttributeOptions = hasAttributeOptions( aggregateDimensionItems ) || hasAttributeOptions( nonAggregateDimensionItems );