@Test public void isMainComponent() { assertTrue(ValidationUtils.isMainComponent(looseConfig, true)); assertFalse(ValidationUtils.isMainComponent(looseConfig, false)); looseConfig.setCheckMainComponentOnly(false); assertTrue(ValidationUtils.isMainComponent(looseConfig, true)); assertTrue(ValidationUtils.isMainComponent(looseConfig, false)); }
public static boolean isMainComponent(ValidationConfig config, boolean mainComponent) { Objects.requireNonNull(config); return config.isCheckMainComponentOnly() ? mainComponent : true; }
ValidationUtils { public static boolean isMainComponent(ValidationConfig config, boolean mainComponent) { Objects.requireNonNull(config); return config.isCheckMainComponentOnly() ? mainComponent : true; } }
ValidationUtils { public static boolean isMainComponent(ValidationConfig config, boolean mainComponent) { Objects.requireNonNull(config); return config.isCheckMainComponentOnly() ? mainComponent : true; } private  ValidationUtils(); }
ValidationUtils { public static boolean isMainComponent(ValidationConfig config, boolean mainComponent) { Objects.requireNonNull(config); return config.isCheckMainComponentOnly() ? mainComponent : true; } private  ValidationUtils(); static ValidationWriter createValidationWriter(String id, ValidationConfig config, Writer writer, ValidationType validationType); static boolean areNaN(ValidationConfig config, float... values); static boolean areNaN(ValidationConfig config, double... values); static boolean boundedWithin(double lowerBound, double upperBound, double value, double margin); static boolean isMainComponent(ValidationConfig config, boolean mainComponent); }
ValidationUtils { public static boolean isMainComponent(ValidationConfig config, boolean mainComponent) { Objects.requireNonNull(config); return config.isCheckMainComponentOnly() ? mainComponent : true; } private  ValidationUtils(); static ValidationWriter createValidationWriter(String id, ValidationConfig config, Writer writer, ValidationType validationType); static boolean areNaN(ValidationConfig config, float... values); static boolean areNaN(ValidationConfig config, double... values); static boolean boundedWithin(double lowerBound, double upperBound, double value, double margin); static boolean isMainComponent(ValidationConfig config, boolean mainComponent); static final String VALIDATION_ERROR; static final String VALIDATION_WARNING; }