Package dev.braintrust.api
Record Class BraintrustApiClient.DatasetFetchRequest
java.lang.Object
java.lang.Record
dev.braintrust.api.BraintrustApiClient.DatasetFetchRequest
- Enclosing interface:
- BraintrustApiClient
-
Constructor Summary
ConstructorsConstructorDescriptionDatasetFetchRequest(int limit) DatasetFetchRequest(int limit, String cursor) DatasetFetchRequest(int limit, String cursor, String version) Creates an instance of aDatasetFetchRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncursor()Returns the value of thecursorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intlimit()Returns the value of thelimitrecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.
-
Constructor Details
-
DatasetFetchRequest
public DatasetFetchRequest(int limit) -
DatasetFetchRequest
-
DatasetFetchRequest
Creates an instance of aDatasetFetchRequestrecord class.- Parameters:
limit- the value for thelimitrecord componentcursor- the value for thecursorrecord componentversion- the value for theversionrecord 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 '=='. -
limit
public int limit()Returns the value of thelimitrecord component.- Returns:
- the value of the
limitrecord component
-
cursor
Returns the value of thecursorrecord component.- Returns:
- the value of the
cursorrecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-