Class GitMetadataImpl

  • All Implemented Interfaces:
    GitMetadata

    @Portable
    public class GitMetadataImpl
    extends Object
    implements GitMetadata
    Represents information about a repository. It contains the origin name the forks it has, the repository name.
    • Constructor Detail

      • GitMetadataImpl

        public GitMetadataImpl​(String name)
      • GitMetadataImpl

        public GitMetadataImpl​(String name,
                               String origin)
    • Method Detail

      • getName

        public String getName()
        Description copied from interface: GitMetadata
        Returns repository name
        Specified by:
        getName in interface GitMetadata
        Returns:
        the repository name
      • getForks

        public List<String> getForks()
        Description copied from interface: GitMetadata
        Returns the list of forks names it has
        Specified by:
        getForks in interface GitMetadata
        Returns:
        the list of forks names
      • getOrigin

        public String getOrigin()
        Description copied from interface: GitMetadata
        The name of the its origin repository
        Specified by:
        getOrigin in interface GitMetadata
        Returns: