Enum Class OrphanEntry.Disposition
- All Implemented Interfaces:
Serializable, Comparable<OrphanEntry.Disposition>, Constable
- Enclosing class:
OrphanEntry
What
scaffold-publish will do with an orphan.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFile is already gone — publish just drops the stale lockfile entry.On-disk content still matches the lockfile hash — publish deletes the file and drops the lockfile entry.File diverged from the lockfile hash, or its tier is shared (tracked-block) or user-owned (model-managed). -
Method Summary
Modifier and TypeMethodDescriptionstatic OrphanEntry.DispositionReturns the enum constant of this class with the specified name.static OrphanEntry.Disposition[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
REMOVE
On-disk content still matches the lockfile hash — publish deletes the file and drops the lockfile entry. -
SKIP_USER_EDITED
File diverged from the lockfile hash, or its tier is shared (tracked-block) or user-owned (model-managed). Publish leaves the file untouched and keeps the lockfile entry so the orphan keeps surfacing until resolved. -
ALREADY_ABSENT
File is already gone — publish just drops the stale lockfile entry.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-