public class EntityStateValue
EntityStateValue is the current value of an entity with its history.
public EntityStateValue(@Nullable
EntityValue currentValue,
@NotNull
java.util.List<ai.tock.bot.engine.dialog.ArchivedEntityValue> currentHistory,
@NotNull
java.time.Instant initialUpdate,
@Nullable
org.litote.kmongo.Id<ai.tock.bot.engine.dialog.EntityStateValue> stateValueId,
@NotNull
java.util.Map<org.litote.kmongo.Id,? extends ai.tock.bot.engine.action.Action> oldActionsMap)
EntityStateValue is the current value of an entity with its history.
currentValue - The current value.currentHistory - The current history.initialUpdate - The initial update date of the state.stateValueId - State value id if any.oldActionsMap - Old action map in order to retrieve lazily the history.public EntityStateValue(@NotNull
Action action,
@NotNull
EntityValue entityValue)
public EntityStateValue(@NotNull
ai.tock.nlp.api.client.model.Entity entity,
@NotNull
ai.tock.nlp.entity.Value value)
@NotNull public java.lang.String toString()
@Nullable public EntityValue getValue()
Current entity value
@NotNull public java.util.List<ai.tock.bot.engine.dialog.ArchivedEntityValue> getPreviousValues()
Previous values for this entity.
@Nullable public ArchivedEntityValue getPenultimateValue()
Returns the penultimate value.
@NotNull public java.util.List<ai.tock.bot.engine.dialog.ArchivedEntityValue> getHistory()
Entity's all history. First is older. Last in current value. Could be empty if there is no history and current value is null.
@NotNull public java.time.Instant getLastUpdate()
The last update date of the value.
public boolean getHasBeanUpdatedInBus()
Is this state has been updated in current BotBus?
@NotNull public java.util.List<ai.tock.bot.engine.dialog.EntityValue> getNewValues()
All values for the current request when merge is not applicable.
@Nullable public org.litote.kmongo.Id<ai.tock.bot.engine.dialog.EntityStateValue> getStateValueId()
State value id if any.
@Nullable public org.litote.kmongo.Id<ai.tock.bot.engine.dialog.EntityStateValue> component4()
State value id if any.
@NotNull public EntityStateValue copy(@Nullable EntityValue currentValue, @NotNull java.util.List<ai.tock.bot.engine.dialog.ArchivedEntityValue> currentHistory, @NotNull java.time.Instant initialUpdate, @Nullable org.litote.kmongo.Id<ai.tock.bot.engine.dialog.EntityStateValue> stateValueId, @NotNull java.util.Map<org.litote.kmongo.Id,? extends ai.tock.bot.engine.action.Action> oldActionsMap)
EntityStateValue is the current value of an entity with its history.
public int hashCode()
EntityStateValue is the current value of an entity with its history.
public boolean equals(@Nullable
java.lang.Object p)
EntityStateValue is the current value of an entity with its history.