@Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        SavedState other = (SavedState) obj;
        return localValueSet == other.localValueSet && submitted == other.submitted && Objects.equals(submittedValue, other.submittedValue);
    }
Keeps state of a component implementing {@link jakarta.faces.component.EditableValueHolder}.
primefaces/src/main/java/org/primefaces/component/api/SavedState.java