Record Class ScaffoldPlan
java.lang.Object
java.lang.Record
network.ike.plugin.scaffold.ScaffoldPlan
- Record Components:
manifestStandardsVersion- thestandards-versionof the manifest the plan was built fromentries- planned entries; nevernull. Stored list is unmodifiable.
public record ScaffoldPlan(String manifestStandardsVersion, List<PlannedEntry> entries)
extends Record
The output of
ScaffoldPlanner: a list of
PlannedEntry records, one per manifest entry the planner
considered.
Plans are pure data — nothing on this record touches disk.
ScaffoldApplier is responsible for carrying a plan out.
-
Constructor Summary
ConstructorsConstructorDescriptionScaffoldPlan(String manifestStandardsVersion, List<PlannedEntry> entries) Canonical constructor with validation and defensive copying. -
Method Summary
Modifier and TypeMethodDescriptionentries()Returns the value of theentriesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanhasSkips()Whether the plan has anyTierAction.Skipactions.booleanWhether the plan has anyTierAction.Writeactions.Returns the value of themanifestStandardsVersionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScaffoldPlan
Canonical constructor with validation and defensive copying.
-
-
Method Details
-
hasWrites
public boolean hasWrites()Whether the plan has anyTierAction.Writeactions.- Returns:
trueif at least one planned entry carries aTierAction.Write
-
hasSkips
public boolean hasSkips()Whether the plan has anyTierAction.Skipactions.- Returns:
trueif at least one planned entry carries aTierAction.Skip
-
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). -
manifestStandardsVersion
Returns the value of themanifestStandardsVersionrecord component.- Returns:
- the value of the
manifestStandardsVersionrecord component
-
entries
-