Record Class GuiCharEvent
java.lang.Object
java.lang.Record
dev.boze.api.gui.input.GuiCharEvent
- Record Components:
codepoint- Unicode code point
A typed character.
-
Constructor Summary
ConstructorsConstructorDescriptionGuiCharEvent(int codepoint) Creates an instance of aGuiCharEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncharintReturns the value of thecodepointrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.text()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GuiCharEvent
public GuiCharEvent(int codepoint) Creates an instance of aGuiCharEventrecord class.- Parameters:
codepoint- the value for thecodepointrecord component
-
-
Method Details
-
text
-
character
public char character()- Returns:
- The character, or
'\0'outside the basic multilingual plane
-
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 with thecomparemethod from their corresponding wrapper classes. -
codepoint
-