Record Class EnumType
java.lang.Object
java.lang.Record
com.botwithus.bot.api.model.EnumType
- Record Components:
id- the enum type IDinputTypeId- the input key type identifieroutputTypeId- the output value type identifierintDefault- the default integer value when a key is not foundstringDefault- the default string value when a key is not foundentryCount- the total number of entries in this enumentries- the key-value mapping entries
public record EnumType(int id, int inputTypeId, int outputTypeId, int intDefault, String stringDefault, int entryCount, Map<String,Object> entries)
extends Record
Enum (key-value mapping) definition from the game cache.
Enums map input keys to output values (e.g., skill IDs to skill names).
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionentries()Returns the value of theentriesrecord component.intReturns the value of theentryCountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intid()Returns the value of theidrecord component.intReturns the value of theinputTypeIdrecord component.intReturns the value of theintDefaultrecord component.intReturns the value of theoutputTypeIdrecord component.Returns the value of thestringDefaultrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EnumType
public EnumType(int id, int inputTypeId, int outputTypeId, int intDefault, String stringDefault, int entryCount, Map<String, Object> entries) Creates an instance of aEnumTyperecord class.- Parameters:
id- the value for theidrecord componentinputTypeId- the value for theinputTypeIdrecord componentoutputTypeId- the value for theoutputTypeIdrecord componentintDefault- the value for theintDefaultrecord componentstringDefault- the value for thestringDefaultrecord componententryCount- the value for theentryCountrecord componententries- the value for theentriesrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
id
-
inputTypeId
public int inputTypeId()Returns the value of theinputTypeIdrecord component.- Returns:
- the value of the
inputTypeIdrecord component
-
outputTypeId
public int outputTypeId()Returns the value of theoutputTypeIdrecord component.- Returns:
- the value of the
outputTypeIdrecord component
-
intDefault
public int intDefault()Returns the value of theintDefaultrecord component.- Returns:
- the value of the
intDefaultrecord component
-
stringDefault
Returns the value of thestringDefaultrecord component.- Returns:
- the value of the
stringDefaultrecord component
-
entryCount
public int entryCount()Returns the value of theentryCountrecord component.- Returns:
- the value of the
entryCountrecord component
-
entries
-