@Test public void shouldBeEqualToTheSameInstance() { EntityTag entityTag = new EntityTag("value", true); assertThat(entityTag, equalTo(entityTag)); assertThat(entityTag.hashCode(), equalTo(entityTag.hashCode())); }
@Override public int hashCode() { return Objects.hash(this.value, this.weak); }
EntityTag { @Override public int hashCode() { return Objects.hash(this.value, this.weak); } }
EntityTag { @Override public int hashCode() { return Objects.hash(this.value, this.weak); } EntityTag(final String value);  EntityTag(final String value, final boolean weak); }
EntityTag { @Override public int hashCode() { return Objects.hash(this.value, this.weak); } EntityTag(final String value);  EntityTag(final String value, final boolean weak); @Deprecated static EntityTag valueOf(final String value); boolean isWeak(); String getValue(); @Override boolean equals(final Object obj); @Override int hashCode(); @Override @Deprecated String toString(); }
EntityTag { @Override public int hashCode() { return Objects.hash(this.value, this.weak); } EntityTag(final String value);  EntityTag(final String value, final boolean weak); @Deprecated static EntityTag valueOf(final String value); boolean isWeak(); String getValue(); @Override boolean equals(final Object obj); @Override int hashCode(); @Override @Deprecated String toString();  }