Record Class RemoteUrls.Site
java.lang.Object
java.lang.Record
io.github.jbastgen.stemma.app.git.RemoteUrls.Site
- Enclosing class:
RemoteUrls
A repository on a service:
base is the address of its web page, without a trailing slash.-
Constructor Summary
ConstructorsConstructorDescriptionSite(RemoteUrls.Service service, String base) Creates an instance of aSiterecord class. -
Method Summary
Modifier and TypeMethodDescriptionbase()Returns the value of thebaserecord component.The page of a branch.The page of a commit.booleandetailed()Whether the service has pages for branches, commits and files (an unknown server has only the repository).final booleanIndicates whether some other object is "equal to" this one.A file as it is in a commit (or on a branch):refis the commit id or the branch name.final inthashCode()Returns a hash code value for this object.The page of the repository.service()Returns the value of theservicerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Site
Creates an instance of aSiterecord class.- Parameters:
service- the value for theservicerecord componentbase- the value for thebaserecord component
-
-
Method Details
-
repository
The page of the repository. -
branch
The page of a branch. -
commit
The page of a commit. -
file
A file as it is in a commit (or on a branch):refis the commit id or the branch name. -
detailed
public boolean detailed()Whether the service has pages for branches, commits and files (an unknown server has only the repository). -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
service
Returns the value of theservicerecord component.- Returns:
- the value of the
servicerecord component
-
base
Returns the value of thebaserecord component.- Returns:
- the value of the
baserecord component
-