Record Class EmojiFontHelper.ParsedText
java.lang.Object
java.lang.Record
com.hrznstudio.emojiful.render.EmojiFontHelper.ParsedText
- Enclosing class:
EmojiFontHelper
public static record EmojiFontHelper.ParsedText(String text, LinkedHashMap<Integer,Emoji> emojis)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionParsedText(String text, LinkedHashMap<Integer, Emoji> emojis) Creates an instance of aParsedTextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionemojis()Returns the value of theemojisrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ParsedText
Creates an instance of aParsedTextrecord class.- Parameters:
text- the value for thetextrecord componentemojis- the value for theemojisrecord 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). -
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
emojis
Returns the value of theemojisrecord component.- Returns:
- the value of the
emojisrecord component
-