Class RepositoryConfiguration

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

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

    • 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 Details

    • 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
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object