Record Class SnapshotJobInfo
java.lang.Object
java.lang.Record
slash.navigation.download.tools.gui.SnapshotJobInfo
public record SnapshotJobInfo(DataSource dataSource, Source source, int fileCount, int mapCount, int themeCount, int downloadableCount, long totalSize, Path snapshotFile)
extends Record
Snapshot-derived metadata for a mirror job row.
- Author:
- Christian Pesch
-
Constructor Summary
ConstructorsConstructorDescriptionSnapshotJobInfo(DataSource dataSource, Source source, int fileCount, int mapCount, int themeCount, int downloadableCount, long totalSize, Path snapshotFile) Creates an instance of aSnapshotJobInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionbaseUrl()Returns the value of thedataSourcerecord component.intReturns the value of thedownloadableCountrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefileCountrecord component.final inthashCode()Returns a hash code value for this object.id()intmapCount()Returns the value of themapCountrecord component.name()Returns the value of thesnapshotFilerecord component.source()Returns the value of thesourcerecord component.intReturns the value of thethemeCountrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalSizerecord component.
-
Constructor Details
-
Method Details
-
id
-
name
-
baseUrl
-
mirrorUrl
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
dataSource
Returns the value of thedataSourcerecord component.- Returns:
- the value of the
dataSourcerecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
fileCount
public int fileCount()Returns the value of thefileCountrecord component.- Returns:
- the value of the
fileCountrecord component
-
mapCount
public int mapCount()Returns the value of themapCountrecord component.- Returns:
- the value of the
mapCountrecord component
-
themeCount
public int themeCount()Returns the value of thethemeCountrecord component.- Returns:
- the value of the
themeCountrecord component
-
downloadableCount
public int downloadableCount()Returns the value of thedownloadableCountrecord component.- Returns:
- the value of the
downloadableCountrecord component
-
totalSize
public long totalSize()Returns the value of thetotalSizerecord component.- Returns:
- the value of the
totalSizerecord component
-
snapshotFile
Returns the value of thesnapshotFilerecord component.- Returns:
- the value of the
snapshotFilerecord component
-