Record Class OrphanEntry
java.lang.Object
java.lang.Record
network.ike.plugin.scaffold.OrphanEntry
- Record Components:
dest- the lockfile/manifestdeststringresolvedDest- absolute on-disk path thedestexpands totier- the ownership tier recorded in the lockfiledisposition- whatscaffold-publishwill do with itreason- human-readable detail for draft/publish output
public record OrphanEntry(String dest, Path resolvedDest, ScaffoldTier tier, OrphanEntry.Disposition disposition, String reason)
extends Record
A scaffold file recorded in
.ike/scaffold.lock whose
dest the current manifest no longer ships — the file was
installed by a scaffold-publish run under a scaffold
strategy that has since been retired.
ScaffoldPlanner only iterates manifest entries, so a
lockfile entry with no manifest counterpart would otherwise stay on
disk and in the lockfile forever. OrphanScanner finds these;
ike:scaffold-draft reports them and ike:scaffold-publish
removes them.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumWhatscaffold-publishwill do with an orphan. -
Constructor Summary
ConstructorsConstructorDescriptionOrphanEntry(String dest, Path resolvedDest, ScaffoldTier tier, OrphanEntry.Disposition disposition, String reason) Canonical constructor with null guards. -
Method Summary
Modifier and TypeMethodDescriptiondest()Returns the value of thedestrecord component.Returns the value of thedispositionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.reason()Returns the value of thereasonrecord component.Returns the value of theresolvedDestrecord component.tier()Returns the value of thetierrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OrphanEntry
public OrphanEntry(String dest, Path resolvedDest, ScaffoldTier tier, OrphanEntry.Disposition disposition, String reason) Canonical constructor with null guards.
-
-
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). -
dest
-
resolvedDest
Returns the value of theresolvedDestrecord component.- Returns:
- the value of the
resolvedDestrecord component
-
tier
-
disposition
Returns the value of thedispositionrecord component.- Returns:
- the value of the
dispositionrecord component
-
reason
-