@Override public boolean equals(Object o) { if (this == o) { return true; } CRFilter that = (CRFilter)o; if(that == null) return false; if (ignore != null ? !CollectionUtils.isEqualCollection(this.ignore, that.ignore) : that.ignore != null) { return false; } if (whitelist != null ? !CollectionUtils.isEqualCollection(this.whitelist, that.whitelist) : that.whitelist != null) { return false; } return true; }
@Override public boolean equals(Object o) { if (this == o) { return true; } CRApproval that = (CRApproval)o; if(that == null) return false; if (type != null ? !type.equals(that.type) : that.type != null) { return false; } if (users != null ? !CollectionUtils.isEqualCollection(this.users, that.users) : that.users != null) { return false; } if (roles != null ? !CollectionUtils.isEqualCollection(this.roles, that.roles) : that.roles != null) { return false; } return true; }
@Override public boolean equals(Object o) { if (this == o) { return true; } CRExecTask that = (CRExecTask)o; if(that == null) return false; if(!super.equals(that)) return false; if (command != null ? !command.equals(that.command) : that.command != null) { return false; } if (working_directory != null ? !working_directory.equals(that.working_directory) : that.working_directory != null) { return false; } if (timeout != null ? !timeout.equals(that.timeout) : that.timeout != null) { return false; } if (arguments != null ? !CollectionUtils.isEqualCollection(this.arguments, that.arguments) : that.arguments != null) { return false; } return true; }
return false; if (jobs != null ? !CollectionUtils.isEqualCollection(jobs, that.jobs) : that.jobs != null) { return false; if (environment_variables != null ? !CollectionUtils.isEqualCollection(environment_variables,that.environment_variables) : that.environment_variables != null) { return false;
return false; if (environment_variables != null ? !CollectionUtils.isEqualCollection(this.environment_variables, that.environment_variables) : that.environment_variables != null) { return false; if (tabs != null ? !CollectionUtils.isEqualCollection(this.tabs, that.tabs) : that.tabs != null) { return false; if (resources != null ? !CollectionUtils.isEqualCollection(this.resources, that.resources) : that.resources != null) { return false; if (artifacts != null ? !CollectionUtils.isEqualCollection(this.artifacts, that.artifacts) : that.artifacts != null) { return false;
return false; if (materials != null ? !CollectionUtils.isEqualCollection(materials, that.materials) : that.materials != null) { return false; if (stages != null ? !CollectionUtils.isEqualCollection(stages, that.stages) : that.stages != null) { return false; if (environment_variables != null ? !CollectionUtils.isEqualCollection(environment_variables,that.environment_variables) : that.environment_variables != null) { return false;
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } if (!super.equals(o)) { return false; } CRPluggableTask that = (CRPluggableTask) o; if (configuration != null && that.configuration == null) return false; if (configuration == null && that.configuration != null) return false; if (configuration != null ? !CollectionUtils.isEqualCollection(configuration,that.configuration) : that.configuration != null) { return false; } if (plugin_configuration != null ? !plugin_configuration.equals(that.plugin_configuration) : that.plugin_configuration != null) { return false; } return true; }
return isEqualCollection(collect(a, transformer), collect(b, transformer));
/** * Gets the bundle for the bundle name, prefix, and file list if previously used on this request. * <p> * Note that the mapping prefix and file list will be assumed to be the same if not provided. * @param name the name of the bundle to search for * @param mappingPrefix the mapping prefix of the bundle request, or null if not provided * @param files the list of files of the bundle request, or null if not provided * @return the bundle request if found, otherwise null */ public ResourcesRequestBundle getBundle(@Nonnull String name, String mappingPrefix, List<String> files) { for (ResourcesRequestBundle resourcesRequestBundle : bundlesRequested) { //names are same if (name.equals(resourcesRequestBundle.getBundleName())) { if (!StringUtils.equalsIgnoreCase(mappingPrefix, resourcesRequestBundle.getMappingPrefix())) { //the prefixes are different continue; } final List<String> bundleFiles = resourcesRequestBundle.getFiles(); if (!CollectionUtils.isEqualCollection(files, bundleFiles)) { //files are different continue; } return resourcesRequestBundle; } } return null; }
@Override public boolean equals(Object o) { if (this == o) { return true; } CREnvironment that = (CREnvironment)o; if(that == null) return false; if (name != null ? !name.equals(that.getName()) : that.getName() != null) { return false; } if (agents != null ? !CollectionUtils.isEqualCollection(this.getAgents(), that.getAgents()) : that.getAgents() != null) { return false; } if (pipelines != null ? !CollectionUtils.isEqualCollection(this.getPipelines(), that.getPipelines()) : that.getPipelines() != null) { return false; } if (environment_variables != null ? !CollectionUtils.isEqualCollection(this.getEnvironmentVariables(),that.getEnvironmentVariables()) : that.getEnvironmentVariables() != null) { return false; } return true; }
private void onPendingStateChanged() { if (!isLocalMining && externalMiner == null) return; logger.debug("onPendingStateChanged()"); if (miningBlock == null) { restartMining(); } else if (miningBlock.getNumber() <= ((PendingStateImpl) pendingState).getBestBlock().getNumber()) { logger.debug("Restart mining: new best block: " + blockchain.getBestBlock().getShortDescr()); restartMining(); } else if (!CollectionUtils.isEqualCollection(miningBlock.getTransactionsList(), getAllPendingTransactions())) { logger.debug("Restart mining: pending transactions changed"); restartMining(); } else { if (logger.isDebugEnabled()) { String s = "onPendingStateChanged() event, but pending Txs the same as in currently mining block: "; for (Transaction tx : getAllPendingTransactions()) { s += "\n " + tx; } logger.debug(s); } } }
wFields.nrNonEmpty(); List<Integer> nonEmptyIndexesAfterChanges = wFields.getNonEmptyIndexes(); if ( CollectionUtils.isEqualCollection( nonEmptyIndexesBeforeChanges, nonEmptyIndexesAfterChanges ) ) {
@Override public boolean equals(Object object) { if (!(object instanceof MonitorEntity)) { return false; } MonitorEntity monitorEntity = (MonitorEntity) object; if (CollectionUtils.isEqualCollection(this.types, monitorEntity.types) && CollectionUtils.isEqualCollection(this.addresses, monitorEntity.addresses)) { return true; } return false; }
protected boolean equalCollections(Collection c1, Collection c2) { if (c1 == null) { return c2 == null; } if (c2 == null) { return false; } return CollectionUtils.isEqualCollection(c1, c2); }
private boolean foundAllProgramMapTables() { final Set<Integer> packetIdsOfProgramMapTablesSeen = programMapTables.keySet(); return CollectionUtils.isEqualCollection( packetIdsOfProgramMapTablesSeen, programMapTablePacketIdDirectory); }
private void handleReplace(Emote oldEmote, Emote newEmote) { if (oldEmote == null || newEmote == null) return; if (!Objects.equals(oldEmote.getName(), newEmote.getName())) { getJDA().getEventManager().handle( new EmoteUpdateNameEvent( getJDA(), responseNumber, newEmote, oldEmote.getName())); } if (!CollectionUtils.isEqualCollection(oldEmote.getRoles(), newEmote.getRoles())) { getJDA().getEventManager().handle( new EmoteUpdateRolesEvent( getJDA(), responseNumber, newEmote, oldEmote.getRoles())); } }
protected boolean equalCollections(Collection<V> a, Collection<V> b) { if (CollectionUtils.isEmpty(a) && CollectionUtils.isEmpty(b)) { return true; } if ((CollectionUtils.isEmpty(a) && CollectionUtils.isNotEmpty(b)) || (CollectionUtils.isNotEmpty(a) && CollectionUtils.isEmpty(b))) { return false; } return CollectionUtils.isEqualCollection(a, b); }
private List<Node> findResourceNodesByPaths(final Set<String> paths) throws RepositoryException { List<String> foundResourcePaths = Arrays.asList(ClasspathResourcesUtil.findResources(paths::contains)); // Log message for resource not found in classpath. if (!CollectionUtils.isEqualCollection(paths, foundResourcePaths)) { List<String> givenPaths = Lists.newArrayList(paths); givenPaths.removeAll(foundResourcePaths); messages.putAll(UpdateResourceMessage.RESOURCE_NOT_FOUND_CLASSPATH, givenPaths.stream().map(input -> new String[]{input}).collect(Collectors.toList())); } return getStrippedNodesByPaths(foundResourcePaths); }
private void select(final List<Path> selected) { final NSTableView browser = this.getSelectedBrowserView(); if(CollectionUtils.isEqualCollection(this.getSelectedPaths(), selected)) { return; } browser.deselectAll(null); for(Path path : selected) { this.select(path); } }
private void consistBatch(String interfaze, List<ApplicationEntity> remoteList) throws Exception { List<ApplicationEntity> localList = cacheContainer.getConnectionCacheEntity().getApplicationEntityList(interfaze); if (!CollectionUtils.isEqualCollection(localList, remoteList)) { List<ApplicationEntity> intersectedList = (List<ApplicationEntity>) CollectionUtils.intersection(localList, remoteList); List<ApplicationEntity> onlineList = (List<ApplicationEntity>) CollectionUtils.subtract(remoteList, intersectedList); List<ApplicationEntity> offlineList = (List<ApplicationEntity>) CollectionUtils.subtract(localList, intersectedList); consistBatchClient(interfaze, onlineList, true); consistBatchClient(interfaze, offlineList, false); } }