Interface IBranchInfo

  • All Known Implementing Classes:
    BranchInfo

    public interface IBranchInfo
    Information about a branch.
    Author:
    ActiveViam
    • Method Detail

      • getName

        String getName()
        Gets the name of the branch.
        Returns:
        the name of the branch
      • getForkPoint

        long getForkPoint()
        Gets the epoch on which this branch was created.
        Returns:
        the epoch on which this branch was created
      • getParentBranch

        String getParentBranch()
        Gets the branch on which this branch was created.
        Returns:
        the branch on which this branch was created
      • getStart

        long getStart()
        Gets the first epoch of the branch.
        Returns:
        the first epoch of the branch
      • getEnd

        long getEnd()
        Gets the id latest epoch of the branch. Note the returned id can belong to a shadow version.
        Returns:
        the id latest epoch of the branch
        See Also:
        IEpoch.getId(), IEpoch.isShadow()
      • getHead

        long getHead()
        Gets the epoch of the head of the branch (i.e. the latest epoch of the branch which is not shadow).

        The result is lower or equal to getEnd().

        Returns:
        the epoch of the head of the branch