Package org.grails.cli.compiler.grape
Class RepositoryConfiguration
- java.lang.Object
-
- org.grails.cli.compiler.grape.RepositoryConfiguration
-
public final class RepositoryConfiguration extends java.lang.ObjectThe configuration of a repository.- Since:
- 2022.1.0
-
-
Constructor Summary
Constructors Constructor Description RepositoryConfiguration(java.lang.String name, java.net.URI uri, boolean snapshotsEnabled)Creates a newRepositoryConfigurationinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetName()Return the name of the repository.booleangetSnapshotsEnabled()Return if the repository should enable access to snapshots.java.net.URIgetUri()Return the URI of the repository.inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
RepositoryConfiguration
public RepositoryConfiguration(java.lang.String name, java.net.URI uri, boolean snapshotsEnabled)Creates a newRepositoryConfigurationinstance.- Parameters:
name- the name of the repositoryuri- the uri of the repositorysnapshotsEnabled-trueif the repository should enable access to snapshots,falseotherwise
-
-
Method Detail
-
getName
public java.lang.String getName()
Return the name of the repository.- Returns:
- the repository name
-
getUri
public java.net.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:
trueif snapshot access is enabled
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-