/** * Determine whether this option map is equal to another. * * @param other the other option map * @return {@code true} if they are equal, {@code false} otherwise */ public boolean equals(Object other) { return other instanceof OptionMap && equals((OptionMap)other); }
/** * Determine whether this option map is equal to another. * * @param other the other option map * @return {@code true} if they are equal, {@code false} otherwise */ public boolean equals(Object other) { return other instanceof OptionMap && equals((OptionMap)other); }
@Override public boolean equals(final Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; final CacheKey cacheKey = (CacheKey) o; if (connectOptions != null ? !connectOptions.equals(cacheKey.connectOptions) : cacheKey.connectOptions != null) return false; if (endpointName != null ? !endpointName.equals(cacheKey.endpointName) : cacheKey.endpointName != null) return false; if (remoteConnectionProviderOptions != null ? !remoteConnectionProviderOptions.equals(cacheKey.remoteConnectionProviderOptions) : cacheKey.remoteConnectionProviderOptions != null) return false; return true; }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; CacheKey cacheKey = (CacheKey) o; if (callbackHandler != null ? !callbackHandler.equals(cacheKey.callbackHandler) : cacheKey.callbackHandler != null) return false; if (connectOptions != null ? !connectOptions.equals(cacheKey.connectOptions) : cacheKey.connectOptions != null) return false; if (destination != null ? !destination.equals(cacheKey.destination) : cacheKey.destination != null) return false; if (endpoint != null ? !endpoint.equals(cacheKey.endpoint) : cacheKey.endpoint != null) return false; if (ejbClientHandler != null ? !ejbClientHandler.equals(cacheKey.ejbClientHandler) : cacheKey.ejbClientHandler != null) return false; return true; }