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
    int compareTo​(MotorModel other)
    Compares this MotorUserMessage to the specified MotorUserMessage to determine equality.
    boolean equals​(Object obj)
    Compares this MotorUserMessage to the specified object to determine equality.
    long getCreated()
    Returns the creation timestamp of this model.
    String getId()
    Returns the unique identifier of this model.
    String getObject()
    Returns the type or category of this model.
    String getOwnedBy()
    Returns the owner's identifier of this model.
    int hashCode()
    Computes the hash code for this MotorSystemMessage based on its message content.
    String toString()
    Provides a string representation of this model, including its id, object, creation time, and owner.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • MotorModel

      public MotorModel()
  • Method Details

    • getId

      public String getId()
      Returns the unique identifier of this model.
      Returns:
      The unique identifier of the model.
    • getObject

      public String 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

      public String 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.
      Overrides:
      hashCode in class Object
      Returns:
      a hash code value for this object.
    • equals

      public boolean equals​(Object obj)
      Compares this MotorUserMessage to the specified object to determine equality. Two MotorUserMessage objects are considered equal if their message texts are identical.
      Overrides:
      equals in class Object
      Parameters:
      obj - The object to compare with this MotorUserMessage for equality.
      Returns:
      true if the given object represents a MotorUserMessage equivalent to this instance, false otherwise.
    • compareTo

      public int compareTo​(MotorModel other)
      Compares this MotorUserMessage to the specified MotorUserMessage to determine equality. Two MotorUserMessage objects are considered equal if their message texts are identical.
      Specified by:
      compareTo in interface Comparable<MotorModel>
      Parameters:
      other - The MotorUserMessage to compare with this MotorUserMessage for equality.
    • toString

      public String toString()
      Provides a string representation of this model, including its id, object, creation time, and owner.
      Overrides:
      toString in class Object
      Returns:
      A string representing the model details.