Package org.projectnessie.model
Interface Detached
-
- All Known Implementing Classes:
ImmutableDetached
@Immutable public interface Detached extends Reference
API representation of a detached Nessie commit, a commit without a named reference. The reserved reference name "DETACHED" is used to indicate "datached" commit IDs. This object is akin to a Ref in Git terminology.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.projectnessie.model.Reference
Reference.ReferenceType
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static ImmutableDetached.Builderbuilder()default voidcheckHash()Validation rule usingValidation.validateReferenceName(String).@NotEmpty StringgetHash()backend system id.default StringgetName()Human-readable reference name.default Reference.ReferenceTypegetType()static Detachedof(String hash)-
Methods inherited from interface org.projectnessie.model.Reference
getMetadata
-
-
-
-
Field Detail
-
REF_NAME
static final String REF_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
@Redacted default String getName()
Description copied from interface:ReferenceHuman-readable reference name.
-
getHash
@NotEmpty @NotEmpty String getHash()
Description copied from interface:Referencebackend system id. Usually the 32-byte hash of the commit this reference points to.
-
checkHash
@Check default void checkHash()
Validation rule usingValidation.validateReferenceName(String).
-
getType
default Reference.ReferenceType getType()
-
builder
static ImmutableDetached.Builder builder()
-
-