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 Details

    • incompatibilities

      private final Collection<IModInfo.ModVersion> incompatibilities
      The field for the incompatibilities record component.
    • discouraged

      private final Collection<IModInfo.ModVersion> discouraged
      The field for the discouraged record component.
    • versionResolution

      private final Collection<IModInfo.ModVersion> versionResolution
      The field for the versionResolution record component.
    • modVersions

      private final Map<String,org.apache.maven.artifact.versioning.ArtifactVersion> modVersions
      The field for the modVersions 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 a DependencyResolutionResult record class.
      Parameters:
      incompatibilities - the value for the incompatibilities record component
      discouraged - the value for the discouraged record component
      versionResolution - the value for the versionResolution record component
      modVersions - the value for the modVersions record component
  • Method Details

    • buildWarningMessages

      public List<ModLoadingIssue> buildWarningMessages()
    • buildErrorMessages

      public List<ModLoadingIssue> buildErrorMessages()
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • incompatibilities

      public Collection<IModInfo.ModVersion> incompatibilities()
      Returns the value of the incompatibilities record component.
      Returns:
      the value of the incompatibilities record component
    • discouraged

      public Collection<IModInfo.ModVersion> discouraged()
      Returns the value of the discouraged record component.
      Returns:
      the value of the discouraged record component
    • versionResolution

      public Collection<IModInfo.ModVersion> versionResolution()
      Returns the value of the versionResolution record component.
      Returns:
      the value of the versionResolution record component
    • modVersions

      public Map<String,org.apache.maven.artifact.versioning.ArtifactVersion> modVersions()
      Returns the value of the modVersions record component.
      Returns:
      the value of the modVersions record component