Package org.projectnessie.model
Interface Branch
-
-
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 org.projectnessie.model.ImmutableBranch.Builderbuilder()default voidcheckName()Validation rule usingValidation.validateReferenceName(String).java.lang.StringgetHash()Commit ID of the reference.ReferenceMetadatagetMetadata()Returns aReferenceMetadatainstance that contains additional metadata about this reference.java.lang.StringgetName()Human-readable reference name.default Reference.ReferenceTypegetType()static Branchof(java.lang.String name, java.lang.String hash)static Branchof(java.lang.String name, java.lang.String hash, ReferenceMetadata metadata)-
Methods inherited from interface org.projectnessie.model.Reference
checkHash, toPathString
-
-
-
-
Method Detail
-
getName
@Parameter(order=1) java.lang.String getName()
Description copied from interface:ReferenceHuman-readable reference name.
-
getMetadata
@Nullable @Nullable @Parameter(order=3) ReferenceMetadata 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
@Nullable @Nullable @Parameter(order=2) java.lang.String 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
default Reference.ReferenceType getType()
-
builder
static org.projectnessie.model.ImmutableBranch.Builder builder()
-
of
static Branch of(java.lang.String name, @Nullable @Nullable java.lang.String hash)
-
of
static Branch of(java.lang.String name, @Nullable @Nullable java.lang.String hash, ReferenceMetadata metadata)
-
-