Package com.ibm.icu.lang
Class CharacterProperties
- java.lang.Object
-
- com.ibm.icu.lang.CharacterProperties
-
public final class CharacterProperties extends java.lang.Object
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
.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UnicodeSet
getBinaryPropertySet(int property)
Returns a frozen UnicodeSet for a binary property.static CodePointMap
getIntPropertyMap(int property)
Returns an immutable CodePointMap for an enumerated/catalog/int-valued property.
-
-
-
Method Detail
-
getBinaryPropertySet
public static final UnicodeSet getBinaryPropertySet(int property)
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:
UProperty
,UCharacter.hasBinaryProperty(int, int)
-
getIntPropertyMap
public static final CodePointMap getIntPropertyMap(int property)
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:
UProperty
,UCharacter.getIntPropertyValue(int, int)
-
-