Package com.evolveum.concepts
Interface Freezable
-
- All Superinterfaces:
MutationBehaviourAware<Freezable>
public interface Freezable extends MutationBehaviourAware<Freezable>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidcheckMutable()Checks if object is not frozen@NotNull Freezablefreeze()Freezes object, all subsequent modifications will result in error.booleanmutable()Return true if object is currently mutable (can change publicly visible state)
-
-
-
Method Detail
-
mutable
boolean mutable()
Description copied from interface:MutationBehaviourAwareReturn true if object is currently mutable (can change publicly visible state)- Specified by:
mutablein interfaceMutationBehaviourAware<Freezable>- Returns:
- true if object is mutable (was not frozen)
-
freeze
@NotNull @NotNull Freezable freeze()
Freezes object, all subsequent modifications will result in error.- Returns:
- This (for fluent API)
-
checkMutable
default void checkMutable() throws IllegalStateExceptionChecks if object is not frozen- Throws:
IllegalStateException- If object is frozen
-
-