@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; HttpServerOptions that = (HttpServerOptions) o; if (compressionSupported != that.compressionSupported) return false; if (maxWebsocketFrameSize != that.maxWebsocketFrameSize) return false; if (maxWebsocketMessageSize != that.maxWebsocketMessageSize) return false; if (handle100ContinueAutomatically != that.handle100ContinueAutomatically) return false; if (maxChunkSize != that.maxChunkSize) return false; if (maxInitialLineLength != that.maxInitialLineLength) return false; if (maxHeaderSize != that.maxHeaderSize) return false; if (initialSettings == null ? that.initialSettings != null : !initialSettings.equals(that.initialSettings)) return false; if (alpnVersions == null ? that.alpnVersions != null : !alpnVersions.equals(that.alpnVersions)) return false; if (http2ConnectionWindowSize != that.http2ConnectionWindowSize) return false; if (decompressionSupported != that.decompressionSupported) return false; if (acceptUnmaskedFrames != that.acceptUnmaskedFrames) return false; if (decoderInitialBufferSize != that.decoderInitialBufferSize) return false; if (websocketDeflateFrameCompressionSupported != that.websocketDeflateFrameCompressionSupported) return false; if (websocketPermessageDeflateCompressionSupported != that.websocketPermessageDeflateCompressionSupported) return false; if (websocketCompressionLevel != that.websocketCompressionLevel) return false; if (websocketCompressionAllowServerNoContext != that.websocketCompressionAllowServerNoContext) return false; if (websocketCompressionPreferredClientNoContext != that.websocketCompressionPreferredClientNoContext) return false; return !(websocketSubProtocols != null ? !websocketSubProtocols.equals(that.websocketSubProtocols) : that.websocketSubProtocols != null); }
if (maxChunkSize != that.maxChunkSize) return false; if (maxWaitQueueSize != that.maxWaitQueueSize) return false; if (initialSettings == null ? that.initialSettings != null : !initialSettings.equals(that.initialSettings)) return false; if (alpnVersions == null ? that.alpnVersions != null : !alpnVersions.equals(that.alpnVersions)) return false; if (http2ClearTextUpgrade != that.http2ClearTextUpgrade) 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; HttpServerOptions that = (HttpServerOptions) o; if (compressionSupported != that.compressionSupported) return false; if (maxWebsocketFrameSize != that.maxWebsocketFrameSize) return false; if (maxWebsocketMessageSize != that.maxWebsocketMessageSize) return false; if (handle100ContinueAutomatically != that.handle100ContinueAutomatically) return false; if (maxChunkSize != that.maxChunkSize) return false; if (maxInitialLineLength != that.maxInitialLineLength) return false; if (maxHeaderSize != that.maxHeaderSize) return false; if (initialSettings == null ? that.initialSettings != null : !initialSettings.equals(that.initialSettings)) return false; if (alpnVersions == null ? that.alpnVersions != null : !alpnVersions.equals(that.alpnVersions)) return false; if (http2ConnectionWindowSize != that.http2ConnectionWindowSize) return false; if (decompressionSupported != that.decompressionSupported) return false; if (acceptUnmaskedFrames != that.acceptUnmaskedFrames) return false; if (decoderInitialBufferSize != that.decoderInitialBufferSize) return false; if (websocketDeflateFrameCompressionSupported != that.websocketDeflateFrameCompressionSupported) return false; if (websocketPermessageDeflateCompressionSupported != that.websocketPermessageDeflateCompressionSupported) return false; if (websocketCompressionLevel != that.websocketCompressionLevel) return false; if (websocketCompressionAllowServerNoContext != that.websocketCompressionAllowServerNoContext) return false; if (websocketCompressionPreferredClientNoContext != that.websocketCompressionPreferredClientNoContext) return false; return !(websocketSubProtocols != null ? !websocketSubProtocols.equals(that.websocketSubProtocols) : that.websocketSubProtocols != null); }
if (maxChunkSize != that.maxChunkSize) return false; if (maxWaitQueueSize != that.maxWaitQueueSize) return false; if (initialSettings == null ? that.initialSettings != null : !initialSettings.equals(that.initialSettings)) return false; if (alpnVersions == null ? that.alpnVersions != null : !alpnVersions.equals(that.alpnVersions)) return false; if (http2ClearTextUpgrade != that.http2ClearTextUpgrade) return false;
assertFalse(settings.equals(update)); assertNotSame(settings.hashCode(), settings.hashCode()); assertSame(settings, settings.setHeaderTableSize(update.getHeaderTableSize())); extraSettings.clear(); assertEquals(update.getExtraSettings(), settings.getExtraSettings()); assertTrue(settings.equals(update)); assertEquals(settings.hashCode(), settings.hashCode());
assertFalse(settings.equals(update)); assertNotSame(settings.hashCode(), settings.hashCode()); assertSame(settings, settings.setHeaderTableSize(update.getHeaderTableSize())); extraSettings.clear(); assertEquals(update.getExtraSettings(), settings.getExtraSettings()); assertTrue(settings.equals(update)); assertEquals(settings.hashCode(), settings.hashCode());