Record Class VectorStore.FileCounts
java.lang.Object
java.lang.Record
io.github.stefanbratanov.jvm.openai.VectorStore.FileCounts
- Enclosing class:
- VectorStore
public static record VectorStore.FileCounts(int inProgress, int completed, int cancelled, int failed, int total)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionFileCounts(int inProgress, int completed, int cancelled, int failed, int total) Creates an instance of aFileCountsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecancelledrecord component.intReturns the value of thecompletedrecord component.final booleanIndicates whether some other object is "equal to" this one.intfailed()Returns the value of thefailedrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of theinProgressrecord component.final StringtoString()Returns a string representation of this record class.inttotal()Returns the value of thetotalrecord component.
-
Constructor Details
-
FileCounts
public FileCounts(int inProgress, int completed, int cancelled, int failed, int total) Creates an instance of aFileCountsrecord class.- Parameters:
inProgress- the value for theinProgressrecord componentcompleted- the value for thecompletedrecord componentcancelled- the value for thecancelledrecord componentfailed- the value for thefailedrecord componenttotal- the value for thetotalrecord 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. All components in this record class are compared with '=='. -
inProgress
public int inProgress()Returns the value of theinProgressrecord component.- Returns:
- the value of the
inProgressrecord component
-
completed
public int completed()Returns the value of thecompletedrecord component.- Returns:
- the value of the
completedrecord component
-
cancelled
public int cancelled()Returns the value of thecancelledrecord component.- Returns:
- the value of the
cancelledrecord component
-
failed
public int failed()Returns the value of thefailedrecord component.- Returns:
- the value of the
failedrecord component
-
total
public int total()Returns the value of thetotalrecord component.- Returns:
- the value of the
totalrecord component
-