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 aAbstractApiRepository
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.format()
Returns the value of theformat
record component.final int
hashCode()
Returns a hash code value for this object.name()
Returns the value of thename
record component.boolean
online()
Returns the value of theonline
record component.final String
toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.url()
Returns the value of theurl
record component.
-
Constructor Details
-
AbstractApiRepository
public AbstractApiRepository(String name, String format, RepositoryType type, String url, boolean online) Creates an instance of aAbstractApiRepository
record 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 thename
record component.- Returns:
- the value of the
name
record component
-
format
Returns the value of theformat
record component.- Returns:
- the value of the
format
record component
-
type
Returns the value of thetype
record component.- Returns:
- the value of the
type
record component
-
url
Returns the value of theurl
record component.- Returns:
- the value of the
url
record component
-
online
public boolean online()Returns the value of theonline
record component.- Returns:
- the value of the
online
record component
-