# AbsoluteCornerSize

[View Source](https://github.com/material-components/material-components-android/blob/1.14.0/lib/java/com/google/android/material/shape/AbsoluteCornerSize.java)

*** ** * ** ***


```
public final class AbsoluteCornerSize implements CornerSize
```

<br />

*** ** * ** ***

A `https://developer.android.com/reference/com/google/android/material/shape/CornerSize` that always uses the provided size and ignores the bounds.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/com/google/android/material/shape/AbsoluteCornerSize#AbsoluteCornerSize(float)(float size)` |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/com/google/android/material/shape/AbsoluteCornerSize#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object o)` |
| `float` | `https://developer.android.com/reference/com/google/android/material/shape/AbsoluteCornerSize#getCornerSize()()` Returns the size of this corner. |
| `float` | `https://developer.android.com/reference/com/google/android/material/shape/AbsoluteCornerSize#getCornerSize(RectF)(RectF bounds)` Returns the corner size that should be used given the full bounds of the shape. |
| `int` | `https://developer.android.com/reference/com/google/android/material/shape/AbsoluteCornerSize#hashCode()()` |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/com/google/android/material/shape/AbsoluteCornerSize#toString()()` |

## Public constructors

### AbsoluteCornerSize

```
public AbsoluteCornerSize(float size)
```

## Public methods

### equals

```
public boolean equals(Object o)
```

### getCornerSize

```
public float getCornerSize()
```

Returns the size of this corner. Bounds aren't required since the result is always the same.

### getCornerSize

```
public float getCornerSize(RectF bounds)
```

Returns the corner size that should be used given the full bounds of the shape.

### hashCode

```
public int hashCode()
```

### toString

```
public String toString()
```