Package xyz.jpenilla.gremlin.runtime
Record Class Dependency
java.lang.Object
java.lang.Record
xyz.jpenilla.gremlin.runtime.Dependency
- All Implemented Interfaces:
Comparable<Dependency>
@NullMarked
public record Dependency(String group, String name, String version, @Nullable String classifier, String extension, String sha256)
extends Record
implements Comparable<Dependency>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable StringReturns the value of theclassifierrecord component.intfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theextensionrecord component.group()Returns the value of thegrouprecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.static Dependencysha256()Returns the value of thesha256record component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
Dependency
public Dependency(String group, String name, String version, @Nullable String classifier, String extension, String sha256) Creates an instance of aDependencyrecord class.- Parameters:
group- the value for thegrouprecord componentname- the value for thenamerecord componentversion- the value for theversionrecord componentclassifier- the value for theclassifierrecord componentextension- the value for theextensionrecord componentsha256- the value for thesha256record component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<Dependency>
-
parse
-
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). -
group
Returns the value of thegrouprecord component.- Returns:
- the value of the
grouprecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
classifier
Returns the value of theclassifierrecord component.- Returns:
- the value of the
classifierrecord component
-
extension
Returns the value of theextensionrecord component.- Returns:
- the value of the
extensionrecord component
-
sha256
Returns the value of thesha256record component.- Returns:
- the value of the
sha256record component
-