@Test public void testHashCode() throws Exception { NettyClientProperties properties1 = new NettyClientProperties(); properties1.setMaxPoolConn(1); NettyClientProperties properties2 = new NettyClientProperties(); properties2.setMaxPoolConn(1); assertEquals(properties1.hashCode(), properties2.hashCode()); }
@Override public int hashCode() { int result = groupEventType != null ? groupEventType.hashCode() : 0; result = 31 * result + (socketChannelType != null ? socketChannelType.hashCode() : 0); result = 31 * result + workers; result = 31 * result + maxPoolConn; result = 31 * result + (channelPipelines != null ? channelPipelines.hashCode() : 0); return result; }
NettyClientProperties { @Override public int hashCode() { int result = groupEventType != null ? groupEventType.hashCode() : 0; result = 31 * result + (socketChannelType != null ? socketChannelType.hashCode() : 0); result = 31 * result + workers; result = 31 * result + maxPoolConn; result = 31 * result + (channelPipelines != null ? channelPipelines.hashCode() : 0); return result; } }
NettyClientProperties { @Override public int hashCode() { int result = groupEventType != null ? groupEventType.hashCode() : 0; result = 31 * result + (socketChannelType != null ? socketChannelType.hashCode() : 0); result = 31 * result + workers; result = 31 * result + maxPoolConn; result = 31 * result + (channelPipelines != null ? channelPipelines.hashCode() : 0); return result; }  }
NettyClientProperties { @Override public int hashCode() { int result = groupEventType != null ? groupEventType.hashCode() : 0; result = 31 * result + (socketChannelType != null ? socketChannelType.hashCode() : 0); result = 31 * result + workers; result = 31 * result + maxPoolConn; result = 31 * result + (channelPipelines != null ? channelPipelines.hashCode() : 0); return result; }  String getGroupEventType(); void setGroupEventType(String groupEventType); String getSocketChannelType(); void setSocketChannelType(String socketChannelType); int getWorkers(); void setWorkers(int workers); int getMaxPoolConn(); void setMaxPoolConn(int maxPoolConn); List<String> getChannelPipelines(); void setChannelPipelines(List<String> channelPipelines); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); }
NettyClientProperties { @Override public int hashCode() { int result = groupEventType != null ? groupEventType.hashCode() : 0; result = 31 * result + (socketChannelType != null ? socketChannelType.hashCode() : 0); result = 31 * result + workers; result = 31 * result + maxPoolConn; result = 31 * result + (channelPipelines != null ? channelPipelines.hashCode() : 0); return result; }  String getGroupEventType(); void setGroupEventType(String groupEventType); String getSocketChannelType(); void setSocketChannelType(String socketChannelType); int getWorkers(); void setWorkers(int workers); int getMaxPoolConn(); void setMaxPoolConn(int maxPoolConn); List<String> getChannelPipelines(); void setChannelPipelines(List<String> channelPipelines); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }