@Test public void testNotEqualsDifferentConfirmationRequired() { IntentData left = mockBuilder("test").withConfirmationRequired(true).build(); IntentData right = mockBuilder("test").build(); assertNotEquals(left, right); assertNotEquals(left.hashCode(), right.hashCode()); }
@Override public int hashCode() { return Objects.hash(confirmationRequired, confirmations, prompts, slots, samples); }
IntentData { @Override public int hashCode() { return Objects.hash(confirmationRequired, confirmations, prompts, slots, samples); } }
IntentData { @Override public int hashCode() { return Objects.hash(confirmationRequired, confirmations, prompts, slots, samples); } IntentData(Boolean confirmationRequired,
                      Set<PromptVariation> confirmations,
                      DialogIntentPrompt prompts,
                      Set<String> samples,
                      Map<String, IntentSlotData> slots); }
IntentData { @Override public int hashCode() { return Objects.hash(confirmationRequired, confirmations, prompts, slots, samples); } IntentData(Boolean confirmationRequired,
                      Set<PromptVariation> confirmations,
                      DialogIntentPrompt prompts,
                      Set<String> samples,
                      Map<String, IntentSlotData> slots); static IntentData combine(IntentData a, IntentData b); static Codec<IntentData> codec(); static IntentData empty(); static Resource.Builder resource(); static Builder builder(); @JsonProperty("samples") Set<String> getSamples(); @JsonProperty("confirmations") Set<PromptVariation> getConfirmations(); @JsonProperty("slots") Map<String, IntentSlotData> getSlots(); @JsonProperty("confirmationRequired") Boolean getConfirmationRequired(); @JsonProperty("prompts") DialogIntentPrompt getPrompts(); @JsonIgnore boolean isEmpty(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode(); }
IntentData { @Override public int hashCode() { return Objects.hash(confirmationRequired, confirmations, prompts, slots, samples); } IntentData(Boolean confirmationRequired,
                      Set<PromptVariation> confirmations,
                      DialogIntentPrompt prompts,
                      Set<String> samples,
                      Map<String, IntentSlotData> slots); static IntentData combine(IntentData a, IntentData b); static Codec<IntentData> codec(); static IntentData empty(); static Resource.Builder resource(); static Builder builder(); @JsonProperty("samples") Set<String> getSamples(); @JsonProperty("confirmations") Set<PromptVariation> getConfirmations(); @JsonProperty("slots") Map<String, IntentSlotData> getSlots(); @JsonProperty("confirmationRequired") Boolean getConfirmationRequired(); @JsonProperty("prompts") DialogIntentPrompt getPrompts(); @JsonIgnore boolean isEmpty(); @Override String toString(); @Override boolean equals(Object o); @Override int hashCode();  }