Class EmbeddedContextState

    • Constructor Detail

      • EmbeddedContextState

        public EmbeddedContextState()
      • EmbeddedContextState

        public EmbeddedContextState​(boolean changed,
                                    List<String> fieldsChanged)
    • Method Detail

      • isChanged

        public boolean isChanged()
        Whether the EmbeddedContextStateAware item to which this state belongs has changed. Defaults to true since, otherwise, the owning item's contextState would likely be null.
        Returns:
        Whether the EmbeddedContextStateAware item to which this state belongs has changed.
      • setChanged

        public void setChanged​(boolean changed)
        Whether the EmbeddedContextStateAware item to which this state belongs has changed. Defaults to true since, otherwise, the owning item's contextState would likely be null.
        Parameters:
        changed - Whether the EmbeddedContextStateAware item to which this state belongs has changed.
      • setFieldsChanged

        public void setFieldsChanged​(List<String> fieldsChanged)
        List of fields on the EmbeddedContextStateAware item to which this state belongs that were changed.
        Parameters:
        fieldsChanged - List of fields on the EmbeddedContextStateAware item to which this state belongs that were changed.
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object