Package org.apache.maven.cli.transfer
Record Class TransferResourceIdentifier
java.lang.Object
java.lang.Record
org.apache.maven.cli.transfer.TransferResourceIdentifier
@Deprecated
record TransferResourceIdentifier(String repositoryId, String repositoryUrl, String resourceName, @Nullable File file)
extends Record
Deprecated.
Immutable identifier of a
TransferResource.
The TransferResource is not immutable and does not implement Objects#equals and Objects#hashCode methods,
making it not very suitable for usage in collections.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final FileDeprecated.The field for thefilerecord component.private final StringDeprecated.The field for therepositoryIdrecord component.private final StringDeprecated.The field for therepositoryUrlrecord component.private final StringDeprecated.The field for theresourceNamerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionTransferResourceIdentifier(String repositoryId, String repositoryUrl, String resourceName, File file) Deprecated.Creates an instance of aTransferResourceIdentifierrecord class.TransferResourceIdentifier(org.eclipse.aether.transfer.TransferResource resource) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanDeprecated.Indicates whether some other object is "equal to" this one.file()Deprecated.Returns the value of thefilerecord component.final inthashCode()Deprecated.Returns a hash code value for this object.Deprecated.Returns the value of therepositoryIdrecord component.Deprecated.Returns the value of therepositoryUrlrecord component.Deprecated.Returns the value of theresourceNamerecord component.final StringtoString()Deprecated.Returns a string representation of this record class.
-
Field Details
-
repositoryId
Deprecated.The field for therepositoryIdrecord component. -
repositoryUrl
Deprecated.The field for therepositoryUrlrecord component. -
resourceName
Deprecated.The field for theresourceNamerecord component. -
file
Deprecated.The field for thefilerecord component.
-
-
Constructor Details
-
TransferResourceIdentifier
TransferResourceIdentifier(org.eclipse.aether.transfer.TransferResource resource) Deprecated. -
TransferResourceIdentifier
TransferResourceIdentifier(String repositoryId, String repositoryUrl, String resourceName, @Nullable File file) Deprecated.Creates an instance of aTransferResourceIdentifierrecord class.- Parameters:
repositoryId- the value for therepositoryIdrecord componentrepositoryUrl- the value for therepositoryUrlrecord componentresourceName- the value for theresourceNamerecord componentfile- the value for thefilerecord component
-
-
Method Details
-
toString
Deprecated.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()Deprecated.Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Deprecated.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). -
repositoryId
Deprecated.Returns the value of therepositoryIdrecord component.- Returns:
- the value of the
repositoryIdrecord component
-
repositoryUrl
Deprecated.Returns the value of therepositoryUrlrecord component.- Returns:
- the value of the
repositoryUrlrecord component
-
resourceName
Deprecated.Returns the value of theresourceNamerecord component.- Returns:
- the value of the
resourceNamerecord component
-
file
Deprecated.Returns the value of thefilerecord component.- Returns:
- the value of the
filerecord component
-