org.springframework.boot.cli.compiler.grape

Class RepositoryConfiguration

  • java.lang.Object
    • org.springframework.boot.cli.compiler.grape.RepositoryConfiguration


  • public final class RepositoryConfiguration
    extends Object
    The configuration of a repository.
    Author:
    Andy Wilkinson
    • Constructor Detail

      • RepositoryConfiguration

        public RepositoryConfiguration(String name,
                                       URI uri,
                                       boolean snapshotsEnabled)
        Creates a new RepositoryConfiguration instance.
        Parameters:
        name - the name of the repository
        uri - the uri of the repository
        snapshotsEnabled - true if the repository should enable access to snapshots, false otherwise
    • Method Detail

      • getName

        public String getName()
        Return the name of the repository.
        Returns:
        the repository name
      • getUri

        public URI getUri()
        Return the URI of the repository.
        Returns:
        the repository URI
      • getSnapshotsEnabled

        public boolean getSnapshotsEnabled()
        Return if the repository should enable access to snapshots.
        Returns:
        true if snapshot access is enabled
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object