Interface Branch

  • All Superinterfaces:
    Base, Reference

    @Immutable
    public interface Branch
    extends Reference
    API representation of a Nessie Branch. This object is akin to a Ref in Git terminology.
    • Method Detail

      • getName

        @Parameter(order=1)
        java.lang.String getName()
        Description copied from interface: Reference
        Human-readable reference name.
        Specified by:
        getName in interface Reference
      • getMetadata

        @Nullable
        @Nullable
        @Parameter(order=3)
        ReferenceMetadata getMetadata()
        Description copied from interface: Reference
        Returns a ReferenceMetadata instance that contains additional metadata about this reference. Note that this is only added by the server when explicitly requested by the client.
        Specified by:
        getMetadata in interface Reference
        Returns:
        A ReferenceMetadata instance 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: Reference
        backend system id. Usually the 32-byte hash of the commit this reference points to.
        Specified by:
        getHash in interface Reference
      • 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)