protected boolean hasProperties(Properties properties) { return !CollectionUtils.isEmpty(properties); }
protected boolean hasProperties(Properties properties) { return !CollectionUtils.isEmpty(properties); }
/** * Null-safe method to add all the {@link Properties} to this builder. This operation effectively overwrites * any properties already set with the same name from the source. * * @param properties {@link Properties} to add to this builder. * @return a reference to this {@link PropertiesBuilder}. * @see java.util.Properties */ public PropertiesBuilder add(Properties properties) { if (!CollectionUtils.isEmpty(properties)) { this.properties.putAll(properties); } return this; }
/** * Null-safe method to add all the {@link Properties} to this builder. This operation effectively overwrites * any properties already set with the same name from the source. * * @param properties {@link Properties} to add to this builder. * @return a reference to this {@link PropertiesBuilder}. * @see java.util.Properties */ public PropertiesBuilder add(Properties properties) { if (!CollectionUtils.isEmpty(properties)) { this.properties.putAll(properties); } return this; }
private boolean isConfigurable(Collection<Class<?>> annotatedClasses, String[] basePackages, String[] contextConfigLocations) { return !(CollectionUtils.isEmpty(annotatedClasses) && ObjectUtils.isEmpty(basePackages) && ObjectUtils.isEmpty(contextConfigLocations)); }
private boolean isConfigurable(Collection<Class<?>> annotatedClasses, String[] basePackages, String[] contextConfigLocations) { return !(CollectionUtils.isEmpty(annotatedClasses) && ObjectUtils.isEmpty(basePackages) && ObjectUtils.isEmpty(contextConfigLocations)); }
private boolean isNamedRegion(String beanName, BeanDefinition beanDefinition, ConfigurableListableBeanFactory beanFactory) { return CollectionUtils.isEmpty(regionNames) || CollectionUtils.containsAny(regionNames, resolveBeanNames(beanName, beanDefinition, beanFactory)); }
private boolean isNamedRegion(String beanName, BeanDefinition beanDefinition, ConfigurableListableBeanFactory beanFactory) { return CollectionUtils.isEmpty(regionNames) || CollectionUtils.containsAny(regionNames, resolveBeanNames(beanName, beanDefinition, beanFactory)); }
private boolean isNamedRegion(String beanName, BeanDefinition beanDefinition, ConfigurableListableBeanFactory beanFactory) { Set<String> resolvedRegionNames = resolveRegionNames(); return CollectionUtils.isEmpty(resolvedRegionNames) || CollectionUtils.containsAny(resolvedRegionNames, resolveBeanNames(beanName, beanDefinition, beanFactory)); }
private boolean isNamedRegion(String beanName, BeanDefinition beanDefinition, ConfigurableListableBeanFactory beanFactory) { Set<String> resolvedRegionNames = resolveRegionNames(); return CollectionUtils.isEmpty(resolvedRegionNames) || CollectionUtils.containsAny(resolvedRegionNames, resolveBeanNames(beanName, beanDefinition, beanFactory)); }