# CollationKey.BoundMode

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

# BoundMode

*** ** * ** ***

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

```
class BoundMode
```

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

Options that used in the API CollationKey.getBound() for getting a CollationKey based on the bound mode requested.

## Summary

|                                                                                                                                                     Constants                                                                                                                                                      ||
|-----------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [LOWER](https://developer.android.com/reference/kotlin/android/icu/text/CollationKey.BoundMode#LOWER:kotlin.Int) Lower bound                                                                                                    |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [UPPER](https://developer.android.com/reference/kotlin/android/icu/text/CollationKey.BoundMode#UPPER:kotlin.Int) Upper bound that will match strings of exact size                                                              |
| static [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [UPPER_LONG](https://developer.android.com/reference/kotlin/android/icu/text/CollationKey.BoundMode#UPPER_LONG:kotlin.Int) Upper bound that will match all the strings that have the same initial substring as the given string |

## Constants

### LOWER

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

```
static val LOWER: Int
```

Lower bound  

    Value: 0

### UPPER

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

```
static val UPPER: Int
```

Upper bound that will match strings of exact size  

    Value: 1

### UPPER_LONG

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

```
static val UPPER_LONG: Int
```

Upper bound that will match all the strings that have the same initial substring as the given string  

    Value: 2