Package io.github.slimjar.resolver.data
Record Class Repository
java.lang.Object
java.lang.Record
io.github.slimjar.resolver.data.Repository
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRepository(@NotNull URL url) Creates an instance of aRepositoryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull Repositorycentral()booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static Repository@NotNull StringtoString()Returns a string representation of this record class.@NotNull URLurl()Returns the value of theurlrecord component.voidwrite(@NotNull DataOutput out)
-
Field Details
-
CENTRAL_URL
- See Also:
-
-
Constructor Details
-
Repository
Creates an instance of aRepositoryrecord class.- Parameters:
url- the value for theurlrecord component
-
-
Method Details
-
central
-
read
- Throws:
IOException
-
write
- Throws:
IOException
-
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). -
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. -
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-