Record Class DeclaredDependencies

java.lang.Object
java.lang.Record
org.pkl.core.project.DeclaredDependencies

public record DeclaredDependencies(Map<String,Dependency.RemoteDependency> remoteDependencies, Map<String,DeclaredDependencies> localDependencies, URI projectFileUri, @Nullable PackageUri myPackageUri) extends Record
  • Constructor Details

    • DeclaredDependencies

      public DeclaredDependencies(Map<String,Dependency.RemoteDependency> remoteDependencies, Map<String,DeclaredDependencies> localDependencies, URI projectFileUri, @Nullable @Nullable PackageUri myPackageUri)
      Creates an instance of a DeclaredDependencies record class.
      Parameters:
      remoteDependencies - the value for the remoteDependencies record component
      localDependencies - the value for the localDependencies record component
      projectFileUri - the value for the projectFileUri record component
      myPackageUri - the value for the myPackageUri record component
  • Method Details

    • getLocalDependencies

      @Deprecated(forRemoval=true) public Map<String,DeclaredDependencies> getLocalDependencies()
      Deprecated, for removal: This API element is subject to removal in a future version.
      As of 0.28.0, replaced by localDependencies().
    • getRemoteDependencies

      @Deprecated(forRemoval=true) public Map<String,Dependency.RemoteDependency> getRemoteDependencies()
      Deprecated, for removal: This API element is subject to removal in a future version.
      As of 0.28.0, replaced by remoteDependencies().
    • getProjectFileUri

      @Deprecated(forRemoval=true) public URI getProjectFileUri()
      Deprecated, for removal: This API element is subject to removal in a future version.
      As of 0.28.0, replaced by projectFileUri().
    • getMyPackageUri

      @Deprecated(forRemoval=true) @Nullable public @Nullable PackageUri getMyPackageUri()
      Deprecated, for removal: This API element is subject to removal in a future version.
      As of 0.28.0, replaced by myPackageUri().
    • 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.
    • remoteDependencies

      public Map<String,Dependency.RemoteDependency> remoteDependencies()
      Returns the value of the remoteDependencies record component.
      Returns:
      the value of the remoteDependencies record component
    • localDependencies

      public Map<String,DeclaredDependencies> localDependencies()
      Returns the value of the localDependencies record component.
      Returns:
      the value of the localDependencies record component
    • projectFileUri

      public URI projectFileUri()
      Returns the value of the projectFileUri record component.
      Returns:
      the value of the projectFileUri record component
    • myPackageUri

      @Nullable public @Nullable PackageUri myPackageUri()
      Returns the value of the myPackageUri record component.
      Returns:
      the value of the myPackageUri record component