# NumberRangeConstraint

# NumberRangeConstraint


```
class NumberRangeConstraint<T : Number> : Constraint
```

<br />

*** ** * ** ***

Represents a range of numbers.

## Summary

| ### Public constructors |
|---|
| `<T : https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-number/index.html> https://developers.home.google.com/reference/kotlin/com/google/home/automation/NumberRangeConstraint#NumberRangeConstraint(kotlin.Number,kotlin.Number,kotlin.Number,com.google.home.automation.ConstraintUnit)( lowerBound: T, upperBound: T, step: T, unit: https://developers.home.google.com/reference/kotlin/com/google/home/automation/ConstraintUnit? )` Create a `NumberRangeConstraint` instance. |

| ### Public properties |
|---|---|
| `T` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/NumberRangeConstraint#lowerBound()` The lower bound of this number range. |
| `T` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/NumberRangeConstraint#step()` The mathematical difference or distance between each member of the number range. |
| `https://developers.home.google.com/reference/kotlin/com/google/home/automation/ConstraintUnit?` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/NumberRangeConstraint#unit()` The measurement unit associated with the number range. |
| `T` | `https://developers.home.google.com/reference/kotlin/com/google/home/automation/NumberRangeConstraint#upperBound()` |

## Public constructors

### NumberRangeConstraint

```
<T : Number> NumberRangeConstraint(
    lowerBound: T,
    upperBound: T,
    step: T,
    unit: ConstraintUnit?
)
```

Create a `NumberRangeConstraint` instance.

## Public properties

### lowerBound

```
val lowerBound: T
```

The lower bound of this number range.

### step

```
val step: T
```

The mathematical difference or distance between each member of the number range.

### unit

```
val unit: ConstraintUnit?
```

The measurement unit associated with the number range.

### upperBound

```
val upperBound: T
```