Package opennlp.tools.util.normalizer
Record Class UnicodeDash.DashCharacter
java.lang.Object
java.lang.Record
opennlp.tools.util.normalizer.UnicodeDash.DashCharacter
- Record Components:
codePoint- The Unicode code point.name- The Unicode character name, lower cased.category- The Unicode generalcategory.
- Enclosing class:
UnicodeDash
public static record UnicodeDash.DashCharacter(int codePoint, String name, UnicodeDash.Category category)
extends Record
One Unicode dash code point and its reference attributes.
-
Constructor Summary
ConstructorsConstructorDescriptionDashCharacter(int codePoint, String name, UnicodeDash.Category category) Creates an instance of aDashCharacterrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncategory()Returns the value of thecategoryrecord 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.booleanReturns whether this is a mathematical minus sign (categorySm).booleanReturns whether this code point is outside the Basic Multilingual Plane.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.Returns theU+XXXXnotation for this code point.
-
Constructor Details
-
Method Details
-
isMathematical
public boolean isMathematical()Returns whether this is a mathematical minus sign (categorySm).- Returns:
- whether this is a mathematical minus sign (category
Sm)
-
isSupplementary
public boolean isSupplementary()Returns whether this code point is outside the Basic Multilingual Plane.- Returns:
- whether this code point is outside the Basic Multilingual Plane
-
toUnicodeNotation
Returns theU+XXXXnotation for this code point.- Returns:
- the
U+XXXXnotation for this code point
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
codePoint
public int codePoint()Returns the value of thecodePointrecord component.- Returns:
- the value of the
codePointrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
category
Returns the value of thecategoryrecord component.- Returns:
- the value of the
categoryrecord component
-