@Test public void testHashCode_IsCached() { HashCodeCounter hashCodeCounter = new HashCodeCounter(); ObjectProperty objectProperty = new ObjectProperty(hashCodeCounter); assertThat(objectProperty.hashCode(), is(objectProperty.hashCode())); assertThat(hashCodeCounter.count, is(1)); }
@Override public int hashCode() { return hashCode; }
ObjectProperty implements Serializable { @Override public int hashCode() { return hashCode; } }
ObjectProperty implements Serializable { @Override public int hashCode() { return hashCode; } ObjectProperty(Object object, @CheckForNull String property, int index);  ObjectProperty(Object object, String property);  ObjectProperty(Object object); }
ObjectProperty implements Serializable { @Override public int hashCode() { return hashCode; } ObjectProperty(Object object, @CheckForNull String property, int index);  ObjectProperty(Object object, String property);  ObjectProperty(Object object); Object getObject(); @CheckForNull String getProperty(); int getIndex(); boolean hasIndex(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); }
ObjectProperty implements Serializable { @Override public int hashCode() { return hashCode; } ObjectProperty(Object object, @CheckForNull String property, int index);  ObjectProperty(Object object, String property);  ObjectProperty(Object object); Object getObject(); @CheckForNull String getProperty(); int getIndex(); boolean hasIndex(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }