Package org.pkl.core.project
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 Summary
ConstructorsConstructorDescriptionDeclaredDependencies(Map<String, Dependency.RemoteDependency> remoteDependencies, Map<String, DeclaredDependencies> localDependencies, URI projectFileUri, @Nullable PackageUri myPackageUri) Creates an instance of aDeclaredDependenciesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.As of 0.28.0, replaced bymyPackageUri().Deprecated, for removal: This API element is subject to removal in a future version.As of 0.28.0, replaced byprojectFileUri().Deprecated, for removal: This API element is subject to removal in a future version.As of 0.28.0, replaced byremoteDependencies().final inthashCode()Returns a hash code value for this object.Returns the value of thelocalDependenciesrecord component.Returns the value of themyPackageUrirecord component.Returns the value of theprojectFileUrirecord component.Returns the value of theremoteDependenciesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DeclaredDependencies
public DeclaredDependencies(Map<String, Dependency.RemoteDependency> remoteDependencies, Map<String, DeclaredDependencies> localDependencies, URI projectFileUri, @Nullable @Nullable PackageUri myPackageUri) Creates an instance of aDeclaredDependenciesrecord class.- Parameters:
remoteDependencies- the value for theremoteDependenciesrecord componentlocalDependencies- the value for thelocalDependenciesrecord componentprojectFileUri- the value for theprojectFileUrirecord componentmyPackageUri- the value for themyPackageUrirecord component
-
-
Method Details
-
getLocalDependencies
Deprecated, for removal: This API element is subject to removal in a future version.As of 0.28.0, replaced bylocalDependencies(). -
getRemoteDependencies
Deprecated, for removal: This API element is subject to removal in a future version.As of 0.28.0, replaced byremoteDependencies(). -
getProjectFileUri
Deprecated, for removal: This API element is subject to removal in a future version.As of 0.28.0, replaced byprojectFileUri(). -
getMyPackageUri
Deprecated, for removal: This API element is subject to removal in a future version.As of 0.28.0, replaced bymyPackageUri(). -
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). -
remoteDependencies
Returns the value of theremoteDependenciesrecord component.- Returns:
- the value of the
remoteDependenciesrecord component
-
localDependencies
Returns the value of thelocalDependenciesrecord component.- Returns:
- the value of the
localDependenciesrecord component
-
projectFileUri
Returns the value of theprojectFileUrirecord component.- Returns:
- the value of the
projectFileUrirecord component
-
myPackageUri
Returns the value of themyPackageUrirecord component.- Returns:
- the value of the
myPackageUrirecord component
-
localDependencies().