Record Class Dependency
java.lang.Object
java.lang.Record
net.darkhax.mmc.config.Dependency
public record Dependency(String name, DependencyType type, HostedProject curseforge, HostedProject modrinth, Map<Platform,String> maven, ModId mod_id)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDependency(String name, DependencyType type, HostedProject curseforge, HostedProject modrinth, Map<Platform, String> maven, ModId mod_id) Creates an instance of aDependencyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecurseforgerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.maven()Returns the value of themavenrecord component.mod_id()Returns the value of themod_idrecord component.modrinth()Returns the value of themodrinthrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
Dependency
public Dependency(String name, DependencyType type, HostedProject curseforge, HostedProject modrinth, Map<Platform, String> maven, ModId mod_id) Creates an instance of aDependencyrecord class.- Parameters:
name- the value for thenamerecord componenttype- the value for thetyperecord componentcurseforge- the value for thecurseforgerecord componentmodrinth- the value for themodrinthrecord componentmaven- the value for themavenrecord componentmod_id- the value for themod_idrecord component
-
-
Method Details
-
getModId
-
toString
-
hashCode
-
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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
curseforge
Returns the value of thecurseforgerecord component.- Returns:
- the value of the
curseforgerecord component
-
modrinth
Returns the value of themodrinthrecord component.- Returns:
- the value of the
modrinthrecord component
-
maven
-
mod_id
Returns the value of themod_idrecord component.- Returns:
- the value of the
mod_idrecord component
-