Record Class ModelPlanResult
java.lang.Object
java.lang.Record
network.ike.plugin.scaffold.ModelPlanResult
- Record Components:
action- the action the applier should takemanagedElements- per-element provenance for the lockfile entry afteractionis applied; nevernull. The stored list is unmodifiable.
public record ModelPlanResult(TierAction action, List<ManagedElement> managedElements)
extends Record
Plan-time decision from a
ModelAdapter.
Model-managed entries differ from file-based tiers: the lockfile
records per-element provenance in ManagedElement rather than
a whole-file checksum. The adapter therefore returns both the
TierAction (for the scaffold applier's file I/O) and the
element list (for the lockfile update).
For TierAction.UpToDate and TierAction.Skip the
element list describes what is (or would be) present; for
TierAction.Write it describes what will be in place
after the write succeeds.
-
Constructor Summary
ConstructorsConstructorDescriptionModelPlanResult(TierAction action, List<ManagedElement> managedElements) Canonical constructor with defensive copying. -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themanagedElementsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModelPlanResult
Canonical constructor with defensive copying.
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
action
-
managedElements
Returns the value of themanagedElementsrecord component.- Returns:
- the value of the
managedElementsrecord component
-