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 Details

    • PingingRepositoryEnquirerFactory

      public PingingRepositoryEnquirerFactory(@NotNull @NotNull PathResolutionStrategy pathResolutionStrategy, @NotNull @NotNull PathResolutionStrategy checksumURLCreationStrategy, @NotNull @NotNull PathResolutionStrategy pomURLCreationStrategy, @NotNull @NotNull URLPinger urlPinger)
      Creates an instance of a PingingRepositoryEnquirerFactory record class.
      Parameters:
      pathResolutionStrategy - the value for the pathResolutionStrategy record component
      checksumURLCreationStrategy - the value for the checksumURLCreationStrategy record component
      pomURLCreationStrategy - the value for the pomURLCreationStrategy record component
      urlPinger - the value for the urlPinger record component
  • Method Details

    • create

      @Contract(pure=true) @NotNull public @NotNull RepositoryEnquirer create(@NotNull @NotNull Repository repository)
      Specified by:
      create in interface RepositoryEnquirerFactory
    • 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.
    • pathResolutionStrategy

      @NotNull public @NotNull PathResolutionStrategy pathResolutionStrategy()
      Returns the value of the pathResolutionStrategy record component.
      Returns:
      the value of the pathResolutionStrategy record component
    • checksumURLCreationStrategy

      @NotNull public @NotNull PathResolutionStrategy checksumURLCreationStrategy()
      Returns the value of the checksumURLCreationStrategy record component.
      Returns:
      the value of the checksumURLCreationStrategy record component
    • pomURLCreationStrategy

      @NotNull public @NotNull PathResolutionStrategy pomURLCreationStrategy()
      Returns the value of the pomURLCreationStrategy record component.
      Returns:
      the value of the pomURLCreationStrategy record component
    • urlPinger

      @NotNull public @NotNull URLPinger urlPinger()
      Returns the value of the urlPinger record component.
      Returns:
      the value of the urlPinger record component