Package dev.braintrust
Record Class Origin
java.lang.Object
java.lang.Record
dev.braintrust.Origin
public record Origin(String objectType, String objectId, String id, String xactId, String createdTimestamp)
extends Record
Generic pointer to an object in braintrust
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecreatedTimestamprecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.objectId()Returns the value of theobjectIdrecord component.Returns the value of theobjectTyperecord component.final StringtoString()Returns a string representation of this record class.xactId()Returns the value of thexactIdrecord component.
-
Constructor Details
-
Origin
public Origin(String objectType, String objectId, String id, String xactId, String createdTimestamp) Creates an instance of aOriginrecord class.- Parameters:
objectType- the value for theobjectTyperecord componentobjectId- the value for theobjectIdrecord componentid- the value for theidrecord componentxactId- the value for thexactIdrecord componentcreatedTimestamp- the value for thecreatedTimestamprecord 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 withObjects::equals(Object,Object). -
objectType
Returns the value of theobjectTyperecord component.- Returns:
- the value of the
objectTyperecord component
-
objectId
Returns the value of theobjectIdrecord component.- Returns:
- the value of the
objectIdrecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
xactId
Returns the value of thexactIdrecord component.- Returns:
- the value of the
xactIdrecord component
-
createdTimestamp
Returns the value of thecreatedTimestamprecord component.- Returns:
- the value of the
createdTimestamprecord component
-