@Test public void testAssignmentWithEmptyBucketEqualsAndHash() { Assignment assignment1 = createAssignmentWithEmptyBucket().build(); Assignment assignment2 = createAssignmentWithEmptyBucket().build(); assertEquals(assignment1, assignment2); assertEquals(assignment2, assignment1); assertEquals(assignment1, assignment1); assertEquals(assignment2, assignment2); assertEquals(assignment1.hashCode(), assignment2.hashCode()); assertEquals(assignment2.hashCode(), assignment1.hashCode()); assertEquals(assignment1.hashCode(), assignment1.hashCode()); assertEquals(assignment2.hashCode(), assignment2.hashCode()); }
@Override public int hashCode() { return HashCodeBuilder.reflectionHashCode(this); }
Assignment { @Override public int hashCode() { return HashCodeBuilder.reflectionHashCode(this); } }
Assignment { @Override public int hashCode() { return HashCodeBuilder.reflectionHashCode(this); } protected  Assignment(); }
Assignment { @Override public int hashCode() { return HashCodeBuilder.reflectionHashCode(this); } protected  Assignment(); boolean isBucketEmpty(); User.ID getUserID(); Experiment.ID getExperimentID(); Date getCreated(); Bucket.Label getBucketLabel(); Context getContext(); Assignment.Status getStatus(); Boolean isCacheable(); Application.Name getApplicationName(); Experiment.Label getExperimentLabel(); String getPayload(); static Builder newInstance(Experiment.ID experimentID); static Builder from(Assignment assignmentResponse); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
Assignment { @Override public int hashCode() { return HashCodeBuilder.reflectionHashCode(this); } protected  Assignment(); boolean isBucketEmpty(); User.ID getUserID(); Experiment.ID getExperimentID(); Date getCreated(); Bucket.Label getBucketLabel(); Context getContext(); Assignment.Status getStatus(); Boolean isCacheable(); Application.Name getApplicationName(); Experiment.Label getExperimentLabel(); String getPayload(); static Builder newInstance(Experiment.ID experimentID); static Builder from(Assignment assignmentResponse); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }