# UnicodeSet.EntryRange

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# EntryRange

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/icu/text/UnicodeSet.EntryRange "View this page in Java")  

```
open class EntryRange
```

|---|----------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                   ||
| ↳ | [android.icu.text.UnicodeSet.EntryRange](https://developer.android.com/reference/kotlin/android/icu/text/UnicodeSet.EntryRange#) |

A struct-like class used for iteration through ranges, for faster iteration than by String. Read about the restrictions on usage in[UnicodeSet.ranges()](https://developer.android.com/reference/kotlin/android/icu/text/UnicodeSet#ranges()).

## Summary

|                                                                                                                    Public methods                                                                                                                     ||
|--------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|
| open[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [toString](https://developer.android.com/reference/kotlin/android/icu/text/UnicodeSet.EntryRange#toString())`()` Returns a string representation of the object. |

|                                                                                                                  Properties                                                                                                                  ||
|----------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [codepoint](https://developer.android.com/reference/kotlin/android/icu/text/UnicodeSet.EntryRange#codepoint:kotlin.Int) The starting code point of the range.    |
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [codepointEnd](https://developer.android.com/reference/kotlin/android/icu/text/UnicodeSet.EntryRange#codepointEnd:kotlin.Int) The ending code point of the range |

## Public methods

### toString

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
open fun toString(): String
```

Returns a string representation of the object.

|                                                          Return                                                          ||
|----------------------------------------------------------------------------------|----------------------------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | a string representation of the object. |

## Properties

### codepoint

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
var codepoint: Int
```

The starting code point of the range.  

### codepointEnd

Added in[API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
var codepointEnd: Int
```

The ending code point of the range