Record Class OrphanEntry

java.lang.Object
java.lang.Record
network.ike.plugin.scaffold.OrphanEntry
Record Components:
dest - the lockfile/manifest dest string
resolvedDest - absolute on-disk path the dest expands to
tier - the ownership tier recorded in the lockfile
disposition - what scaffold-publish will do with it
reason - 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.

  • Constructor Details

  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • dest

      public String dest()
      Returns the value of the dest record component.
      Returns:
      the value of the dest record component
    • resolvedDest

      public Path resolvedDest()
      Returns the value of the resolvedDest record component.
      Returns:
      the value of the resolvedDest record component
    • tier

      public ScaffoldTier tier()
      Returns the value of the tier record component.
      Returns:
      the value of the tier record component
    • disposition

      public OrphanEntry.Disposition disposition()
      Returns the value of the disposition record component.
      Returns:
      the value of the disposition record component
    • reason

      public String reason()
      Returns the value of the reason record component.
      Returns:
      the value of the reason record component