Package com.chatmotorapi.api.models
Class MotorModel
java.lang.Object
com.chatmotorapi.api.models.MotorModel
- All Implemented Interfaces:
Comparable<MotorModel>
public class MotorModel extends Object implements Comparable<MotorModel>
Represents a model of OpenAI, encapsulating details about model identifiers,
creation time, and ownership.
-
Constructor Summary
Constructors Constructor Description MotorModel() -
Method Summary
Modifier and Type Method Description intcompareTo(MotorModel other)Compares this MotorUserMessage to the specified MotorUserMessage to determine equality.booleanequals(Object obj)Compares this MotorUserMessage to the specified object to determine equality.longgetCreated()Returns the creation timestamp of this model.StringgetId()Returns the unique identifier of this model.StringgetObject()Returns the type or category of this model.StringgetOwnedBy()Returns the owner's identifier of this model.inthashCode()Computes the hash code for this MotorSystemMessage based on its message content.StringtoString()Provides a string representation of this model, including its id, object, creation time, and owner.
-
Constructor Details
-
MotorModel
public MotorModel()
-
-
Method Details
-
getId
Returns the unique identifier of this model.- Returns:
- The unique identifier of the model.
-
getObject
Returns the type or category of this model.- Returns:
- The object type or category of the model.
-
getCreated
public long getCreated()Returns the creation timestamp of this model.- Returns:
- The UNIX timestamp when the model was created.
-
getOwnedBy
Returns the owner's identifier of this model.- Returns:
- The identifier of the owner of the model.
-
hashCode
public int hashCode()Computes the hash code for this MotorSystemMessage based on its message content. -
equals
Compares this MotorUserMessage to the specified object to determine equality. Two MotorUserMessage objects are considered equal if their message texts are identical. -
compareTo
Compares this MotorUserMessage to the specified MotorUserMessage to determine equality. Two MotorUserMessage objects are considered equal if their message texts are identical.- Specified by:
compareToin interfaceComparable<MotorModel>- Parameters:
other- The MotorUserMessage to compare with this MotorUserMessage for equality.
-
toString
Provides a string representation of this model, including its id, object, creation time, and owner.
-