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 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 a PingingRepositoryEnquirer record class.
      Parameters:
      repository - the value for the repository record component
      dependencyURLCreationStrategy - the value for the dependencyURLCreationStrategy 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

    • enquire

      @Contract(pure=true) @Nullable public @Nullable ResolutionResult enquire(@NotNull @NotNull Dependency dependency)
      Specified by:
      enquire in interface RepositoryEnquirer
    • toString

      @NotNull public @NotNull 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.
    • repository

      @NotNull public @NotNull Repository repository()
      Returns the value of the repository record component.
      Returns:
      the value of the repository record component
    • dependencyURLCreationStrategy

      @NotNull public @NotNull PathResolutionStrategy dependencyURLCreationStrategy()
      Returns the value of the dependencyURLCreationStrategy record component.
      Returns:
      the value of the dependencyURLCreationStrategy 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