public class NlpEntityMergeContext
Provides all info to allow multiple values of the same entity type to be merged.
public NlpEntityMergeContext(@NotNull
java.lang.String entityRole,
@Nullable
EntityStateValue initialValue,
@NotNull
java.util.List<ai.tock.bot.engine.dialog.EntityValue> newValues)
Provides all info to allow multiple values of the same entity type to be merged.
entityRole - The entity roleinitialValue - The optional initial (old) valuenewValues - The proposed new values@NotNull public java.lang.String getEntityRole()
The entity role
@Nullable public EntityStateValue getInitialValue()
The optional initial
(old) value
@NotNull public java.util.List<ai.tock.bot.engine.dialog.EntityValue> getNewValues()
The proposed new values
@NotNull public java.lang.String component1()
The entity role
@Nullable public EntityStateValue component2()
The optional initial
(old) value
@NotNull public java.util.List<ai.tock.bot.engine.dialog.EntityValue> component3()
The proposed new values
@NotNull public NlpEntityMergeContext copy(@NotNull java.lang.String entityRole, @Nullable EntityStateValue initialValue, @NotNull java.util.List<ai.tock.bot.engine.dialog.EntityValue> newValues)
Provides all info to allow multiple values of the same entity type to be merged.
@NotNull public java.lang.String toString()
Provides all info to allow multiple values of the same entity type to be merged.
public int hashCode()
Provides all info to allow multiple values of the same entity type to be merged.
public boolean equals(@Nullable
java.lang.Object p)
Provides all info to allow multiple values of the same entity type to be merged.