Class RepositoryConfiguration
- java.lang.Object
- org.springframework.boot.cli.compiler.grape.RepositoryConfiguration
public final class RepositoryConfiguration extends Object
The configuration of a repository.
Constructor Summary
Constructors Constructor Description RepositoryConfiguration(String name, URI uri, boolean snapshotsEnabled)
Creates a newRepositoryConfiguration
instance.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getName()
Return the name of the repository.boolean
getSnapshotsEnabled()
Return if the repository should enable access to snapshots.URI
getUri()
Return the URI of the repository.int
hashCode()
String
toString()
Constructor Detail
RepositoryConfiguration
public RepositoryConfiguration(String name, URI uri, boolean snapshotsEnabled)
Creates a newRepositoryConfiguration
instance.- Parameters:
name
- the name of the repositoryuri
- the uri of the repositorysnapshotsEnabled
-true
if the repository should enable access to snapshots,false
otherwise
Method Detail
getSnapshotsEnabled
public boolean getSnapshotsEnabled()
Return if the repository should enable access to snapshots.- Returns:
true
if snapshot access is enabled