Record Class Tokenizer.Encoding
java.lang.Object
java.lang.Record
ai.beestream.jitnn.nn.text.Tokenizer.Encoding
- Enclosing class:
Tokenizer
-
Constructor Summary
Constructors -
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.int[]ids()Returns the value of theidsrecord component.String[]tokens()Returns the value of thetokensrecord component.final StringtoString()Returns a string representation of this record class.int[]typeIds()Returns the value of thetypeIdsrecord component.
-
Constructor Details
-
Encoding
Creates an instance of aEncodingrecord class.- Parameters:
ids- the value for theidsrecord componenttypeIds- the value for thetypeIdsrecord componenttokens- the value for thetokensrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
ids
public int[] ids()Returns the value of theidsrecord component.- Returns:
- the value of the
idsrecord component
-
typeIds
public int[] typeIds()Returns the value of thetypeIdsrecord component.- Returns:
- the value of the
typeIdsrecord component
-
tokens
Returns the value of thetokensrecord component.- Returns:
- the value of the
tokensrecord component
-