@Test public void testHashCode() { assertThat(noneEnabled.hashCode()).isEqualTo(defaultTraceOptions.hashCode()); assertThat(noneEnabled.hashCode()).isEqualTo(noneEnabled.hashCode()); assertThat(stackTraceEnabled.hashCode()).isNotEqualTo(allEnabled.hashCode()); }
@Override public int hashCode() { return Objects.hash(optionsMask); }
TraceOptions { @Override public int hashCode() { return Objects.hash(optionsMask); } }
TraceOptions { @Override public int hashCode() { return Objects.hash(optionsMask); } TraceOptions();  TraceOptions(int optionsMask); }
TraceOptions { @Override public int hashCode() { return Objects.hash(optionsMask); } TraceOptions();  TraceOptions(int optionsMask); static TraceOptions forTraceDisabled(); static TraceOptions forTraceEnabled(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); int getOptionsMask(); boolean getTraceEnabled(); boolean getStackTraceEnabled(); TraceOptions overrideTraceEnabled(boolean enabled); TraceOptions overrideStackTraceEnabled(boolean enabled); }
TraceOptions { @Override public int hashCode() { return Objects.hash(optionsMask); } TraceOptions();  TraceOptions(int optionsMask); static TraceOptions forTraceDisabled(); static TraceOptions forTraceEnabled(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); int getOptionsMask(); boolean getTraceEnabled(); boolean getStackTraceEnabled(); TraceOptions overrideTraceEnabled(boolean enabled); TraceOptions overrideStackTraceEnabled(boolean enabled);  }