@Test public void testHashCode() { FieldOptions options1, options2; options1 = FieldOptions.builder() .fieldSet(CacheType.RANKED, 100) .build(); options2 = FieldOptions.builder() .fieldSet(CacheType.RANKED, 100) .build(); assertEquals(options1.hashCode(), options2.hashCode()); options1 = FieldOptions.builder() .fieldInt(-100, 200) .build(); options2 = FieldOptions.builder() .fieldInt(-100, 200) .build(); assertEquals(options1.hashCode(), options2.hashCode()); options1 = FieldOptions.builder() .fieldTime(TimeQuantum.YEAR_MONTH) .build(); options2 = FieldOptions.builder() .fieldTime(TimeQuantum.YEAR_MONTH) .build(); assertEquals(options1.hashCode(), options2.hashCode()); }
@Override public int hashCode() { return new HashCodeBuilder(31, 47) .append(this.timeQuantum) .append(this.cacheType) .append(this.cacheSize) .append(this.fieldType) .append(this.min) .append(this.max) .append(this.keys) .toHashCode(); }
FieldOptions { @Override public int hashCode() { return new HashCodeBuilder(31, 47) .append(this.timeQuantum) .append(this.cacheType) .append(this.cacheSize) .append(this.fieldType) .append(this.min) .append(this.max) .append(this.keys) .toHashCode(); } }
FieldOptions { @Override public int hashCode() { return new HashCodeBuilder(31, 47) .append(this.timeQuantum) .append(this.cacheType) .append(this.cacheSize) .append(this.fieldType) .append(this.min) .append(this.max) .append(this.keys) .toHashCode(); } private  FieldOptions(final TimeQuantum timeQuantum,
                         final CacheType cacheType,
                         final Integer cacheSize,
                         final FieldType fieldType,
                         final long min,
                         final long max,
                         final Boolean keys); }
FieldOptions { @Override public int hashCode() { return new HashCodeBuilder(31, 47) .append(this.timeQuantum) .append(this.cacheType) .append(this.cacheSize) .append(this.fieldType) .append(this.min) .append(this.max) .append(this.keys) .toHashCode(); } private  FieldOptions(final TimeQuantum timeQuantum,
                         final CacheType cacheType,
                         final Integer cacheSize,
                         final FieldType fieldType,
                         final long min,
                         final long max,
                         final Boolean keys); @SuppressWarnings("WeakerAccess") static FieldOptions withDefaults(); static FieldOptions fromMap(final Map<String, Object> map); static Builder builder(); TimeQuantum getTimeQuantum(); CacheType getCacheType(); int getCacheSize(); FieldType getFieldType(); long getMin(); long getMax(); boolean isKeys(); @Override String toString(); @Override boolean equals(Object obj); @Override int hashCode(); }
FieldOptions { @Override public int hashCode() { return new HashCodeBuilder(31, 47) .append(this.timeQuantum) .append(this.cacheType) .append(this.cacheSize) .append(this.fieldType) .append(this.min) .append(this.max) .append(this.keys) .toHashCode(); } private  FieldOptions(final TimeQuantum timeQuantum,
                         final CacheType cacheType,
                         final Integer cacheSize,
                         final FieldType fieldType,
                         final long min,
                         final long max,
                         final Boolean keys); @SuppressWarnings("WeakerAccess") static FieldOptions withDefaults(); static FieldOptions fromMap(final Map<String, Object> map); static Builder builder(); TimeQuantum getTimeQuantum(); CacheType getCacheType(); int getCacheSize(); FieldType getFieldType(); long getMin(); long getMax(); boolean isKeys(); @Override String toString(); @Override boolean equals(Object obj); @Override int hashCode();  }