public static boolean isPropertiesEqual(final Properties p1, final Properties p2) { return p1.equals(p2); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof ArtifactMd5Checksums)) { return false; } ArtifactMd5Checksums that = (ArtifactMd5Checksums) o; if (checksumProperties != null ? !checksumProperties.equals(that.checksumProperties) : that.checksumProperties != null) { return false; } return true; }
public boolean equals(Object o) { return delegate.equals(o); }
@Override public final synchronized boolean equals(Object o) { return super.equals(o); }
private synchronized void updateFileProperties(Properties newProperties, ConfigSourceType sourceType) { this.m_sourceType = sourceType; if (newProperties.equals(m_fileProperties)) { return; } this.m_fileProperties = newProperties; persistLocalCacheFile(m_baseDir, m_namespace); }
@Override public synchronized boolean equals( Object o ) { super.putAll( storageMap ); boolean result = super.equals( o ); super.clear(); return result; }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } LuceneTestSerializer that = (LuceneTestSerializer) o; return props.equals(that.props); }
@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; } ImmutableProperties that = (ImmutableProperties) o; return props != null ? props.equals(that.props) : that.props == null; }
public boolean equals(Object o) { return getDelegate().equals(o); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (!(obj instanceof TestFunction)) { return false; } TestFunction function = (TestFunction) obj; return this.props.equals(function.getConfig()); }
public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof DBLoader)) { return false; } DBLoader other = (DBLoader) obj; if (!this.props.equals(other.props)) { return false; } return true; }
@Override public void onRepositoryChange(String namespace, Properties newProperties) { if (newProperties.equals(m_fileProperties)) { return; } Properties newFileProperties = new Properties(); newFileProperties.putAll(newProperties); updateFileProperties(newFileProperties, m_upstream.getSourceType()); this.fireRepositoryChange(namespace, newProperties); }
@Override public synchronized void onRepositoryChange(String namespace, Properties newProperties) { if (newProperties.equals(m_configProperties.get())) { return; } ConfigSourceType sourceType = m_configRepository.getSourceType(); Properties newConfigProperties = new Properties(); newConfigProperties.putAll(newProperties); Map<String, ConfigChange> actualChanges = updateAndCalcConfigChanges(newConfigProperties, sourceType); //check double checked result if (actualChanges.isEmpty()) { return; } this.fireConfigChange(new ConfigChangeEvent(m_namespace, actualChanges)); Tracer.logEvent("Apollo.Client.ConfigChanges", m_namespace); }
/** * Compares two avro strings which contains single store configs * * @param configAvro1 * @param configAvro2 * @return true if two config avro strings have same content */ public static Boolean compareSingleClientConfigAvro(String configAvro1, String configAvro2) { Properties props1 = readSingleClientConfigAvro(configAvro1); Properties props2 = readSingleClientConfigAvro(configAvro2); if(props1.equals(props2)) { return true; } else { return false; } }
@Override public boolean equals(Object o) { if (o == null) { return false; } if (!(o instanceof ClassName)) { return false; } ClassName that = (ClassName) o; return this.className.equals(that.getClassName()) && this.getInitProperties().equals(that.getInitProperties()); }
/** * Checks the local member metadata for changes. */ private void checkMetadata() { if (!localMember.properties().equals(localProperties)) { localProperties = new Properties(); localProperties.putAll(localMember.properties()); post(new GroupMembershipEvent(GroupMembershipEvent.Type.METADATA_CHANGED, localMember)); } }
@Override public synchronized void onRepositoryChange(String namespace, Properties newProperties) { if (newProperties.equals(m_configProperties)) { return; } Properties newConfigProperties = new Properties(); newConfigProperties.putAll(newProperties); List<ConfigChange> changes = calcPropertyChanges(namespace, m_configProperties, newConfigProperties); Map<String, ConfigChange> changeMap = Maps.uniqueIndex(changes, new Function<ConfigChange, String>() { @Override public String apply(ConfigChange input) { return input.getPropertyName(); } }); updateConfig(newConfigProperties, m_configRepository.getSourceType()); clearConfigCache(); this.fireConfigChange(new ConfigChangeEvent(m_namespace, changeMap)); Tracer.logEvent("Apollo.Client.ConfigChanges", m_namespace); }
@Override public synchronized void onRepositoryChange(String namespace, Properties newProperties) { if (newProperties.equals(m_configProperties.get())) { return; } Properties newConfigProperties = new Properties(); newConfigProperties.putAll(newProperties); String oldValue = getContent(); update(newProperties); m_sourceType = m_configRepository.getSourceType(); String newValue = getContent(); PropertyChangeType changeType = PropertyChangeType.MODIFIED; if (oldValue == null) { changeType = PropertyChangeType.ADDED; } else if (newValue == null) { changeType = PropertyChangeType.DELETED; } this.fireConfigChange(new ConfigFileChangeEvent(m_namespace, oldValue, newValue, changeType)); Tracer.logEvent("Apollo.Client.ConfigChanges", m_namespace); }
/** * Checks the local member metadata for changes. */ private void checkMetadata() { if (!localMember.properties().equals(localProperties)) { localProperties = new Properties(); localProperties.putAll(localMember.properties()); LOGGER.debug("{} - Detected local properties change {}", localMember.id(), localProperties); localMember.setIncarnationNumber(localMember.getIncarnationNumber() + 1); post(new GroupMembershipEvent(GroupMembershipEvent.Type.METADATA_CHANGED, localMember)); recordUpdate(localMember.copy()); } }