Package trading.keysquare.api.codec
Record Class Codec.Type
java.lang.Object
java.lang.Record
trading.keysquare.api.codec.Codec.Type
- Enclosing interface:
Codec
A tuple of schema id and template id, this is used to uniquely identify a type on the platform.
-
Constructor Summary
ConstructorsConstructorDescriptionType(int schemaId, int templateId) Creates an instance of aTyperecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intschemaId()Returns the value of theschemaIdrecord component.intReturns the value of thetemplateIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Type
public Type(int schemaId, int templateId) Creates an instance of aTyperecord class.- Parameters:
schemaId- the value for theschemaIdrecord componenttemplateId- the value for thetemplateIdrecord 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 '=='. -
schemaId
public int schemaId()Returns the value of theschemaIdrecord component.- Returns:
- the value of the
schemaIdrecord component
-
templateId
public int templateId()Returns the value of thetemplateIdrecord component.- Returns:
- the value of the
templateIdrecord component
-