Class CharacterProperties
java.lang.Object
com.ibm.icu.lang.CharacterProperties
Sets and maps for Unicode properties. The methods here return an object per property: A set for
each ICU-supported binary property with all code points for which the property is true. A map for
each ICU-supported enumerated/catalog/int-valued property which maps all Unicode code points to
their values for that property.
For details see the method descriptions. For lookup of property values by code point see class
UCharacter.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final AtomicReferenceArray<CodePointMap> private static final AtomicReferenceArray<UnicodeSet> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final UnicodeSetgetBinaryPropertySet(int property) Returns a frozen UnicodeSet for a binary property.static final CodePointMapgetIntPropertyMap(int property) Returns an immutable CodePointMap for an enumerated/catalog/int-valued property.private static CodePointMapmakeMap(int property) private static UnicodeSetmakeSet(int property)
-
Field Details
-
SETS
-
MAPS
-
-
Constructor Details
-
CharacterProperties
private CharacterProperties()
-
-
Method Details
-
makeSet
-
makeMap
-
getBinaryPropertySet
Returns a frozen UnicodeSet for a binary property. Throws an exception if the property number is not one for a binary property.The returned set contains all code points for which the property is true.
- Parameters:
property-UProperty.BINARY_START..UProperty.BINARY_LIMIT-1- Returns:
- the property as a set
- See Also:
-
getIntPropertyMap
Returns an immutable CodePointMap for an enumerated/catalog/int-valued property. Throws an exception if the property number is not one for an "int property".The returned object maps all Unicode code points to their values for that property. For documentation of the integer values see
UCharacter.getIntPropertyValue(int, int).The actual type of the returned object differs between properties and may change over time.
- Parameters:
property-UProperty.INT_START..UProperty.INT_LIMIT-1- Returns:
- the property as a map
- See Also:
-