# CLNumber

Artifact: [androidx.constraintlayout:constraintlayout-core](https://developer.android.com/jetpack/androidx/releases/constraintlayout) [View Source](https://cs.android.com/search?q=file:androidx/constraintlayout/core/parser/CLNumber.java+class:androidx.constraintlayout.core.parser.CLNumber) Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

*** ** * ** ***

<br />

```
class CLNumber : CLElement
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [androidx.constraintlayout.core.parser.CLElement](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement) ||
|   | ↳ | [androidx.constraintlayout.core.parser.CLNumber](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLNumber) |

*** ** * ** ***

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLNumber#CLNumber(char[])(content: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char/index.html>!)` |
| `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLNumber#CLNumber(float)(value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` |

| ### Public functions |
|---|---|
| `java-static https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLNumber#allocate(char[])(content: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char/index.html>!)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLNumber#equals(java.lang.Object)(obj: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLNumber#getFloat()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLNumber#getInt()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLNumber#hashCode()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLNumber#isInt()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLNumber#putValue(float)(value: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` |

| ### Protected functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLNumber#toFormattedJSON(int,int)(indent: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, forceIndent: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLNumber#toJSON()()` |

### Inherited functions

From [androidx.constraintlayout.core.parser.CLElement](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement) `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#addIndent(java.lang.StringBuilder,int)(builder: https://developer.android.com/reference/java/lang/StringBuilder.html!, indent: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#clone()()` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#content()()` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement!` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#getContainer()()` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#getDebugName()()` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#getEnd()()`

The character index this element was ended on
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#getLine()()`

get the line Number
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#getStart()()`

The character index this element was started on
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#getStrClass()()` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#hasContent()()`

Whether this element has any valid content defined.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#isDone()()` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#isStarted()()` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#notStarted()()` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#setContainer(androidx.constraintlayout.core.parser.CLContainer)(element: https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLContainer!)` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#setEnd(long)(end: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#setLine(int)(line: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#setStart(long)(start: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#toString()()`

### Inherited properties

From [androidx.constraintlayout.core.parser.CLElement](https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement) `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLContainer!` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#mContainer()` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#mEnd()` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#mStart()` `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#sBaseIndent()` `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/constraintlayout/core/parser/CLElement#sMaxLine()`

## Public constructors

### CLNumber

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
CLNumber(content: CharArray<Char>!)
```

### CLNumber

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
CLNumber(value: Float)
```

## Public functions

### allocate

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
java-static fun allocate(content: CharArray<Char>!): CLElement!
```

### equals

```
fun equals(obj: Any!): Boolean
```

### getFloat

```
fun getFloat(): Float
```

### getInt

```
fun getInt(): Int
```

### hashCode

```
fun hashCode(): Int
```

### isInt

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
fun isInt(): Boolean
```

### putValue

Added in [1.1.2](https://developer.android.com/jetpack/androidx/releases/constraintlayout#1.1.2)

```
fun putValue(value: Float): Unit
```

## Protected functions

### toFormattedJSON

```
protected fun toFormattedJSON(indent: Int, forceIndent: Int): String!
```

### toJSON

```
protected fun toJSON(): String!
```