@Test public void testNotEqualsDifferentElicitations() { IntentSlotData left = mockBuilder("left").build(); IntentSlotData right = mockBuilder("left") .withElicitation("different") .build(); assertNotEquals(left, right); assertNotEquals(left.hashCode(), right.hashCode()); }
@Override public int hashCode() { return Objects.hash(confirmationRequired, confirmations, elicitationRequired, elicitations, prompts, samples); }
IntentSlotData { @Override public int hashCode() { return Objects.hash(confirmationRequired, confirmations, elicitationRequired, elicitations, prompts, samples); } }
IntentSlotData { @Override public int hashCode() { return Objects.hash(confirmationRequired, confirmations, elicitationRequired, elicitations, prompts, samples); } IntentSlotData(Boolean confirmationRequired, Set<PromptVariation> confirmations,
                          Boolean elicitationRequired, Set<PromptVariation> elicitations,
                          DialogSlotPrompt prompts,
                          Set<String> samples); }
IntentSlotData { @Override public int hashCode() { return Objects.hash(confirmationRequired, confirmations, elicitationRequired, elicitations, prompts, samples); } IntentSlotData(Boolean confirmationRequired, Set<PromptVariation> confirmations,
                          Boolean elicitationRequired, Set<PromptVariation> elicitations,
                          DialogSlotPrompt prompts,
                          Set<String> samples); @JsonProperty("samples") Set<String> getSamples(); @JsonProperty("elicitations") Set<PromptVariation> getElicitations(); @JsonProperty("confirmations") Set<PromptVariation> getConfirmations(); @JsonProperty("confirmationRequired") Boolean getConfirmationRequired(); @JsonProperty("elicitationRequired") Boolean getElicitationRequired(); @JsonProperty("prompts") DialogSlotPrompt getPrompts(); @Override boolean equals(Object o); @Override int hashCode(); static Builder builder(); }
IntentSlotData { @Override public int hashCode() { return Objects.hash(confirmationRequired, confirmations, elicitationRequired, elicitations, prompts, samples); } IntentSlotData(Boolean confirmationRequired, Set<PromptVariation> confirmations,
                          Boolean elicitationRequired, Set<PromptVariation> elicitations,
                          DialogSlotPrompt prompts,
                          Set<String> samples); @JsonProperty("samples") Set<String> getSamples(); @JsonProperty("elicitations") Set<PromptVariation> getElicitations(); @JsonProperty("confirmations") Set<PromptVariation> getConfirmations(); @JsonProperty("confirmationRequired") Boolean getConfirmationRequired(); @JsonProperty("elicitationRequired") Boolean getElicitationRequired(); @JsonProperty("prompts") DialogSlotPrompt getPrompts(); @Override boolean equals(Object o); @Override int hashCode(); static Builder builder();  }