Record Class PingingRepositoryEnquirer
java.lang.Object
java.lang.Record
io.github.slimjar.resolver.enquirer.PingingRepositoryEnquirer
- All Implemented Interfaces:
RepositoryEnquirer
public record PingingRepositoryEnquirer(@NotNull Repository repository, @NotNull PathResolutionStrategy dependencyURLCreationStrategy, @NotNull PathResolutionStrategy checksumURLCreationStrategy, @NotNull PathResolutionStrategy pomURLCreationStrategy, @NotNull URLPinger urlPinger)
extends Record
implements RepositoryEnquirer
-
Constructor Summary
ConstructorsConstructorDescriptionPingingRepositoryEnquirer(@NotNull Repository repository, @NotNull PathResolutionStrategy dependencyURLCreationStrategy, @NotNull PathResolutionStrategy checksumURLCreationStrategy, @NotNull PathResolutionStrategy pomURLCreationStrategy, @NotNull URLPinger urlPinger) Creates an instance of aPingingRepositoryEnquirerrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull PathResolutionStrategyReturns the value of thechecksumURLCreationStrategyrecord component.@NotNull PathResolutionStrategyReturns the value of thedependencyURLCreationStrategyrecord component.@Nullable ResolutionResultenquire(@NotNull Dependency dependency) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull PathResolutionStrategyReturns the value of thepomURLCreationStrategyrecord component.@NotNull RepositoryReturns the value of therepositoryrecord component.@NotNull StringtoString()Returns a string representation of this record class.@NotNull URLPingerReturns the value of theurlPingerrecord component.
-
Constructor Details
-
PingingRepositoryEnquirer
public PingingRepositoryEnquirer(@NotNull @NotNull Repository repository, @NotNull @NotNull PathResolutionStrategy dependencyURLCreationStrategy, @NotNull @NotNull PathResolutionStrategy checksumURLCreationStrategy, @NotNull @NotNull PathResolutionStrategy pomURLCreationStrategy, @NotNull @NotNull URLPinger urlPinger) Creates an instance of aPingingRepositoryEnquirerrecord class.- Parameters:
repository- the value for therepositoryrecord componentdependencyURLCreationStrategy- the value for thedependencyURLCreationStrategyrecord componentchecksumURLCreationStrategy- the value for thechecksumURLCreationStrategyrecord componentpomURLCreationStrategy- the value for thepomURLCreationStrategyrecord componenturlPinger- the value for theurlPingerrecord component
-
-
Method Details
-
enquire
@Contract(pure=true) @Nullable public @Nullable ResolutionResult enquire(@NotNull @NotNull Dependency dependency) - Specified by:
enquirein interfaceRepositoryEnquirer
-
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). -
repository
Returns the value of therepositoryrecord component.- Returns:
- the value of the
repositoryrecord component
-
dependencyURLCreationStrategy
Returns the value of thedependencyURLCreationStrategyrecord component.- Returns:
- the value of the
dependencyURLCreationStrategyrecord component
-
checksumURLCreationStrategy
Returns the value of thechecksumURLCreationStrategyrecord component.- Returns:
- the value of the
checksumURLCreationStrategyrecord component
-
pomURLCreationStrategy
Returns the value of thepomURLCreationStrategyrecord component.- Returns:
- the value of the
pomURLCreationStrategyrecord component
-
urlPinger
Returns the value of theurlPingerrecord component.- Returns:
- the value of the
urlPingerrecord component
-