Package org.projectnessie.model
Interface Detached
-
@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
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringREF_NAME
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static org.projectnessie.model.ImmutableDetached.Builderbuilder()default voidcheckHash()Validation rule usingValidation.validateReferenceName(String).@NotEmpty java.lang.StringgetHash()backend system id.default java.lang.StringgetName()Human-readable reference name.default Reference.ReferenceTypegetType()static Detachedof(java.lang.String hash)-
Methods inherited from interface org.projectnessie.model.Reference
getMetadata
-
-
-
-
Field Detail
-
REF_NAME
static final java.lang.String REF_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
@Redacted default java.lang.String getName()
Description copied from interface:ReferenceHuman-readable reference name.
-
getHash
@NotEmpty @NotEmpty java.lang.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 org.projectnessie.model.ImmutableDetached.Builder builder()
-
of
static Detached of(java.lang.String hash)
-
-