Package net.neoforged.fml.loading
Record Class ModSorter.DependencyResolutionResult
java.lang.Object
java.lang.Record
net.neoforged.fml.loading.ModSorter.DependencyResolutionResult
- Enclosing class:
ModSorter
public static record ModSorter.DependencyResolutionResult(Collection<IModInfo.ModVersion> incompatibilities, Collection<IModInfo.ModVersion> discouraged, Collection<IModInfo.ModVersion> versionResolution, Map<String,org.apache.maven.artifact.versioning.ArtifactVersion> modVersions)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Collection
<IModInfo.ModVersion> The field for thediscouraged
record component.private final Collection
<IModInfo.ModVersion> The field for theincompatibilities
record component.The field for themodVersions
record component.private final Collection
<IModInfo.ModVersion> The field for theversionResolution
record component. -
Constructor Summary
ConstructorsConstructorDescriptionDependencyResolutionResult
(Collection<IModInfo.ModVersion> incompatibilities, Collection<IModInfo.ModVersion> discouraged, Collection<IModInfo.ModVersion> versionResolution, Map<String, org.apache.maven.artifact.versioning.ArtifactVersion> modVersions) Creates an instance of aDependencyResolutionResult
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thediscouraged
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theincompatibilities
record component.Returns the value of themodVersions
record component.final String
toString()
Returns a string representation of this record class.Returns the value of theversionResolution
record component.
-
Field Details
-
incompatibilities
The field for theincompatibilities
record component. -
discouraged
The field for thediscouraged
record component. -
versionResolution
The field for theversionResolution
record component. -
modVersions
The field for themodVersions
record component.
-
-
Constructor Details
-
DependencyResolutionResult
public DependencyResolutionResult(Collection<IModInfo.ModVersion> incompatibilities, Collection<IModInfo.ModVersion> discouraged, Collection<IModInfo.ModVersion> versionResolution, Map<String, org.apache.maven.artifact.versioning.ArtifactVersion> modVersions) Creates an instance of aDependencyResolutionResult
record class.- Parameters:
incompatibilities
- the value for theincompatibilities
record componentdiscouraged
- the value for thediscouraged
record componentversionResolution
- the value for theversionResolution
record componentmodVersions
- the value for themodVersions
record component
-
-
Method Details
-
buildWarningMessages
-
buildErrorMessages
-
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)
. -
incompatibilities
Returns the value of theincompatibilities
record component.- Returns:
- the value of the
incompatibilities
record component
-
discouraged
Returns the value of thediscouraged
record component.- Returns:
- the value of the
discouraged
record component
-
versionResolution
Returns the value of theversionResolution
record component.- Returns:
- the value of the
versionResolution
record component
-
modVersions
Returns the value of themodVersions
record component.- Returns:
- the value of the
modVersions
record component
-