java.lang.Object
java.lang.Record
org.aya.cli.library.json.LibraryDependency.DepGithub
- All Implemented Interfaces:
LibraryDependency
- Enclosing interface:
LibraryDependency
public static record LibraryDependency.DepGithub(@NotNull String depName, @NotNull String repo)
extends Record
implements LibraryDependency
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.aya.cli.library.json.LibraryDependency
LibraryDependency.DepFile, LibraryDependency.DepGithub, LibraryDependency.DepVersion -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull StringdepName()Returns the value of thedepNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull Stringrepo()Returns the value of thereporecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DepGithub
Creates an instance of aDepGithubrecord class.- Parameters:
depName- the value for thedepNamerecord componentrepo- the value for thereporecord component
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
depName
Returns the value of thedepNamerecord component.- Specified by:
depNamein interfaceLibraryDependency- Returns:
- the value of the
depNamerecord component
-
repo
Returns the value of thereporecord component.- Returns:
- the value of the
reporecord component
-