# AlphabeticIndex.Record

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

# Record

*** ** * ** ***

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

```
class Record<V : Any!>
```

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

A (name, data) pair, to be sorted by name into one of the index buckets. The user data is not used by the index implementation.

## Summary

|                                                                                                              Public methods                                                                                                               ||
|----------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------|
| openV                                                                                              | [getData](https://developer.android.com/reference/kotlin/android/icu/text/AlphabeticIndex.Record#getData())`()` Get the data          |
| open[CharSequence](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html)! | [getName](https://developer.android.com/reference/kotlin/android/icu/text/AlphabeticIndex.Record#getName())`()` Get the name          |
| open[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)               | [toString](https://developer.android.com/reference/kotlin/android/icu/text/AlphabeticIndex.Record#toString())`()` Standard toString() |

## Public methods

### getData

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

```
open fun getData(): V
```

Get the data

|   Return    ||
|---|----------|
| V | the data |

### getName

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

```
open fun getName(): CharSequence!
```

Get the name

|                                                  Return                                                  ||
|------------------------------------------------------------------------------------------------|----------|
| [CharSequence](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-char-sequence/index.html)! | the name |

### toString

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

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

Standard toString()

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