File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
src/main/java/org/gridsuite/filter/globalfilter Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -291,10 +291,12 @@ public static List<String> applyGlobalFilterOnNetwork(@Nonnull final Network net
291291 return FiltersUtils .combineFilterResults (allFilterResults , !genericFilters .isEmpty ());
292292 }
293293
294- /** When tab we are filtering on several equipment types, and we have generic filters,
295- * we consider only equipment types that have one or more generic filter the other types are excluded
294+ /** When we are filtering on several equipment types, and we have generic filters,
295+ * we consider only equipment types that have one or more generic filter. The other types are excluded.
296296 * Substation and Voltage level types include all equipment types, only if there is no other equipment
297- * type filter
297+ * type filters
298+ * @param equipmentType : equipment type that should be processed
299+ * @param genericFilters : generic filters list
298300 * **/
299301 public static boolean shouldProcessEquipmentType (@ Nonnull final EquipmentType equipmentType ,
300302 @ Nonnull final List <AbstractFilter >genericFilters ) {
@@ -307,7 +309,7 @@ public static boolean shouldProcessEquipmentType(@Nonnull final EquipmentType eq
307309 return true ;
308310 }
309311
310- // keep only equipment types that have at least one corresponding generic filter
312+ // equipment type should have at least one corresponding generic filter
311313 return genericFilters .stream ().anyMatch (filter -> filter .getEquipmentType ().equals (equipmentType ));
312314 }
313315 return true ;
You can’t perform that action at this time.
0 commit comments