Module org.eclipse.jgit
Record Class MultiPackIndexWriter.Result
java.lang.Object
java.lang.Record
org.eclipse.jgit.internal.storage.midx.MultiPackIndexWriter.Result
- Record Components:
bytesWritten- byte-size of the multipack indexobjectCount- count objects in this midx (i.e. unique objects in the covered packs)packNames- packNames
- Enclosing class:
- MultiPackIndexWriter
public static record MultiPackIndexWriter.Result(long bytesWritten, int objectCount, List<String> packNames)
extends Record
Data about the written multipack index
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thebytesWrittenrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theobjectCountrecord component.Returns the value of thepackNamesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Result
Creates an instance of aResultrecord class.- Parameters:
bytesWritten- the value for thebytesWrittenrecord componentobjectCount- the value for theobjectCountrecord componentpackNames- the value for thepackNamesrecord component
-
-
Method Details
-
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 '=='. -
bytesWritten
public long bytesWritten()Returns the value of thebytesWrittenrecord component.- Returns:
- the value of the
bytesWrittenrecord component
-
objectCount
public int objectCount()Returns the value of theobjectCountrecord component.- Returns:
- the value of the
objectCountrecord component
-
packNames
Returns the value of thepackNamesrecord component.- Returns:
- the value of the
packNamesrecord component
-