Record Class PingingRepositoryEnquirerFactory
java.lang.Object
java.lang.Record
io.github.slimjar.resolver.enquirer.PingingRepositoryEnquirerFactory
- All Implemented Interfaces:
RepositoryEnquirerFactory
public record PingingRepositoryEnquirerFactory(@NotNull PathResolutionStrategy pathResolutionStrategy, @NotNull PathResolutionStrategy checksumURLCreationStrategy, @NotNull PathResolutionStrategy pomURLCreationStrategy, @NotNull URLPinger urlPinger)
extends Record
implements RepositoryEnquirerFactory
-
Constructor Summary
ConstructorsConstructorDescriptionPingingRepositoryEnquirerFactory(@NotNull PathResolutionStrategy pathResolutionStrategy, @NotNull PathResolutionStrategy checksumURLCreationStrategy, @NotNull PathResolutionStrategy pomURLCreationStrategy, @NotNull URLPinger urlPinger) Creates an instance of aPingingRepositoryEnquirerFactoryrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull PathResolutionStrategyReturns the value of thechecksumURLCreationStrategyrecord component.@NotNull RepositoryEnquirercreate(@NotNull Repository repository) 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 thepathResolutionStrategyrecord component.@NotNull PathResolutionStrategyReturns the value of thepomURLCreationStrategyrecord component.final StringtoString()Returns a string representation of this record class.@NotNull URLPingerReturns the value of theurlPingerrecord component.
-
Constructor Details
-
PingingRepositoryEnquirerFactory
public PingingRepositoryEnquirerFactory(@NotNull @NotNull PathResolutionStrategy pathResolutionStrategy, @NotNull @NotNull PathResolutionStrategy checksumURLCreationStrategy, @NotNull @NotNull PathResolutionStrategy pomURLCreationStrategy, @NotNull @NotNull URLPinger urlPinger) Creates an instance of aPingingRepositoryEnquirerFactoryrecord class.- Parameters:
pathResolutionStrategy- the value for thepathResolutionStrategyrecord componentchecksumURLCreationStrategy- the value for thechecksumURLCreationStrategyrecord componentpomURLCreationStrategy- the value for thepomURLCreationStrategyrecord componenturlPinger- the value for theurlPingerrecord component
-
-
Method Details
-
create
@Contract(pure=true) @NotNull public @NotNull RepositoryEnquirer create(@NotNull @NotNull Repository repository) - Specified by:
createin interfaceRepositoryEnquirerFactory
-
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). -
pathResolutionStrategy
Returns the value of thepathResolutionStrategyrecord component.- Returns:
- the value of the
pathResolutionStrategyrecord 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
-