public class EmbeddedContextState extends Object implements Serializable
Tracking
placed on EmbeddedContextStateAware
embedded collections members of business domains implementing ContextStateAware
. Useful
for API callers when making determinations regarding changes to particular items within an
embedded collection. These changes would otherwise be obscured because ContextState
does
not provide information beyond that a collection was modified, not which items were changed and
how.EmbeddedContextStateAware
,
Serialized FormConstructor and Description |
---|
EmbeddedContextState() |
EmbeddedContextState(boolean changed,
List<String> fieldsChanged) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
List<String> |
getFieldsChanged()
List of fields on the
EmbeddedContextStateAware item to which this state belongs that
were changed. |
int |
hashCode() |
boolean |
isChanged()
Whether the
EmbeddedContextStateAware item to which this state belongs has changed. |
void |
setChanged(boolean changed)
Whether the
EmbeddedContextStateAware item to which this state belongs has changed. |
void |
setFieldsChanged(List<String> fieldsChanged)
List of fields on the
EmbeddedContextStateAware item to which this state belongs that
were changed. |
String |
toString() |
public boolean isChanged()
EmbeddedContextStateAware
item to which this state belongs has changed.
Defaults to true since, otherwise, the owning item's contextState would likely be null.EmbeddedContextStateAware
item to which this state belongs has
changed.public List<String> getFieldsChanged()
EmbeddedContextStateAware
item to which this state belongs that
were changed.EmbeddedContextStateAware
item to which this state
belongs that were changed.public void setChanged(boolean changed)
EmbeddedContextStateAware
item to which this state belongs has changed.
Defaults to true since, otherwise, the owning item's contextState would likely be null.changed
- Whether the EmbeddedContextStateAware
item to which this state belongs
has changed.public void setFieldsChanged(List<String> fieldsChanged)
EmbeddedContextStateAware
item to which this state belongs that
were changed.fieldsChanged
- List of fields on the EmbeddedContextStateAware
item to which
this state belongs that were changed.protected boolean canEqual(Object other)
Copyright © 2021. All rights reserved.