Package org.projectnessie.model
Interface Branch
API representation of a Nessie Branch. 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
Modifier and TypeMethodDescriptionstatic org.projectnessie.model.ImmutableBranch.Builderbuilder()default voidValidation rule usingValidation.validateReferenceName(String).getHash()Commit ID of the reference.Returns aReferenceMetadatainstance that contains additional metadata about this reference.getName()Human-readable reference name.default Reference.ReferenceTypegetType()static Branchstatic Branchof(String name, String hash, ReferenceMetadata metadata) Methods inherited from interface org.projectnessie.model.Reference
checkHash, toPathString
-
Method Details
-
getName
Description copied from interface:ReferenceHuman-readable reference name. -
getMetadata
Description copied from interface:ReferenceReturns aReferenceMetadatainstance that contains additional metadata about this reference. Note that this is only added by the server when explicitly requested by the client.- Specified by:
getMetadatain interfaceReference- Returns:
- A
ReferenceMetadatainstance that contains additional metadata about this reference. Note that this is only added by the server when explicitly requested by the client.
-
getHash
Description copied from interface:ReferenceCommit ID of the reference.Will be an "exact" commit ID (no relative parts) when returned from a Nessie server. Might contain relative parts when used as an input to a Nessie API functionality (since Nessie spec 2.1.0).
-
checkName
@Check default void checkName()Validation rule usingValidation.validateReferenceName(String). -
getType
-
builder
static org.projectnessie.model.ImmutableBranch.Builder builder() -
of
-
of
-