Package de.chojo.nexus.entities
Record Class AbstractApiRepository
java.lang.Object
java.lang.Record
de.chojo.nexus.entities.AbstractApiRepository
- Record Components:
name- A unique identifier for this repositoryformat- Component format held in this repositorytype- Controls if deployments of and updates to artifacts are allowedurl- URL to the repositoryonline- Whether this repository accepts incoming requests
public record AbstractApiRepository(String name, String format, RepositoryType type, String url, boolean online)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractApiRepository(String name, String format, RepositoryType type, String url, boolean online) Creates an instance of aAbstractApiRepositoryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.format()Returns the value of theformatrecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.booleanonline()Returns the value of theonlinerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.url()Returns the value of theurlrecord component.
-
Constructor Details
-
AbstractApiRepository
public AbstractApiRepository(String name, String format, RepositoryType type, String url, boolean online) Creates an instance of aAbstractApiRepositoryrecord class.
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
format
Returns the value of theformatrecord component.- Returns:
- the value of the
formatrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
online
public boolean online()Returns the value of theonlinerecord component.- Returns:
- the value of the
onlinerecord component
-