Record Class UnicodeWhitespace.RelatedCharacter
java.lang.Object
java.lang.Record
opennlp.tools.util.normalizer.UnicodeWhitespace.RelatedCharacter
- Record Components:
codePoint- The Unicode code point.name- The Unicode character name, lower cased as in the reference table.abbreviation- The common abbreviation (for exampleBOM), or""if none.note- A short description of what the character actually does.
- Enclosing class:
UnicodeWhitespace
public static record UnicodeWhitespace.RelatedCharacter(int codePoint, String name, String abbreviation, String note)
extends Record
One related code point that is commonly confused with whitespace but is not
(
White_Space=no). These are format characters and must not be treated as, or
normalized like, whitespace.-
Constructor Summary
ConstructorsConstructorDescriptionRelatedCharacter(int codePoint, String name, String abbreviation, String note) Creates an instance of aRelatedCharacterrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theabbreviationrecord component.intReturns 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.name()Returns the value of thenamerecord component.note()Returns the value of thenoterecord component.final StringtoString()Returns a string representation of this record class.Returns theU+XXXXnotation for this code point.
-
Constructor Details
-
RelatedCharacter
Creates an instance of aRelatedCharacterrecord class.- Parameters:
codePoint- the value for thecodePointrecord componentname- the value for thenamerecord componentabbreviation- the value for theabbreviationrecord componentnote- the value for thenoterecord component
-
-
Method Details
-
toUnicodeNotation
Returns theU+XXXXnotation for this code point.- Returns:
- the
U+XXXXnotation for this code point
-
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. -
codePoint
-
name
-
abbreviation
Returns the value of theabbreviationrecord component.- Returns:
- the value of the
abbreviationrecord component
-
note
-