Module org.eclipse.jgit
Record Class MidxMetadataReader.MidxMetadata
java.lang.Object
java.lang.Record
org.eclipse.jgit.internal.storage.midx.MidxMetadataReader.MidxMetadata
- Record Components:
packNames- list of packs in this midx (in midx order).checksumB64- checksum of the midx, encoded in Base64
- Enclosing class:
- MidxMetadataReader
public static record MidxMetadataReader.MidxMetadata(List<String> packNames, String checksumB64)
extends Record
Metadata useful before loading the full midx
-
Constructor Summary
ConstructorsConstructorDescriptionMidxMetadata(List<String> packNames, String checksumB64) Creates an instance of aMidxMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]checksum()Return the checksum as byte[]Returns the value of thechecksumB64record component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thepackNamesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MidxMetadata
Creates an instance of aMidxMetadatarecord class.- Parameters:
packNames- the value for thepackNamesrecord componentchecksumB64- the value for thechecksumB64record component
-
-
Method Details
-
checksum
public byte[] checksum()Return the checksum as byte[]- Returns:
- checksum in byte[] format
-
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). -
packNames
Returns the value of thepackNamesrecord component.- Returns:
- the value of the
packNamesrecord component
-
checksumB64
Returns the value of thechecksumB64record component.- Returns:
- the value of the
checksumB64record component
-