A sealed interface for evaluating profile field updates without persisting them. Use this to implement validation or conditional logic for user profile modifications in a federated auth system.
// Source: https://github.com/iflytek/skillhub | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
package com.iflytek.skillhub.auth.federation.core;
import java.util.Objects;
/** Result of evaluating one field update without performing persistence. */
public sealed interface ProfileFieldResolution
permits ProfileFieldResolution.Applied,
ProfileFieldResolution.Preserved,
ProfileFieldResolution.Rejected {
record Applied(ProfileFieldState state) implements ProfileFieldResolution {
public Applied {
Objects.requireNonNull(state, "state");
}
}
record Preserved(
ProfileFieldState state,
ProfileFieldR
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key