Package google.registry.bsa.persistence
Record Class DownloadSchedule.CompletedJob
java.lang.Object
java.lang.Record
google.registry.bsa.persistence.DownloadSchedule.CompletedJob
- Enclosing class:
DownloadSchedule
public static record DownloadSchedule.CompletedJob(String jobName, com.google.common.collect.ImmutableMap<BlockListType,String> checksums)
extends Record
Information about a completed BSA download job.
-
Constructor Summary
ConstructorDescriptionCompletedJob
(String jobName, com.google.common.collect.ImmutableMap<BlockListType, String> checksums) Creates an instance of aCompletedJob
record class. -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.collect.ImmutableMap
<BlockListType, String> Returns the value of thechecksums
record component.create
(google.registry.bsa.persistence.BsaDownload completedJob) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.jobName()
Returns the value of thejobName
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
CompletedJob
public CompletedJob(String jobName, com.google.common.collect.ImmutableMap<BlockListType, String> checksums) Creates an instance of aCompletedJob
record class.- Parameters:
jobName
- the value for thejobName
record componentchecksums
- the value for thechecksums
record component
-
-
Method Details
-
create
public static DownloadSchedule.CompletedJob create(google.registry.bsa.persistence.BsaDownload completedJob) -
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)
. -
jobName
Returns the value of thejobName
record component.- Returns:
- the value of the
jobName
record component
-
checksums
Returns the value of thechecksums
record component.- Returns:
- the value of the
checksums
record component
-