Class RepositoryConfiguration


  • public final class RepositoryConfiguration
    extends java.lang.Object
    The 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 new RepositoryConfiguration instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getName()
      Return the name of the repository.
      boolean getSnapshotsEnabled()
      Return if the repository should enable access to snapshots.
      java.net.URI getUri()
      Return the URI of the repository.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RepositoryConfiguration

        public RepositoryConfiguration​(java.lang.String name,
                                       java.net.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 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:
        true if snapshot access is enabled
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object