# NotificationCompat.Metric.FixedTime

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/app/NotificationCompat.java+class:androidx.core.app.NotificationCompat.Metric.FixedTime) Added in [1.19.1](https://developer.android.com/jetpack/androidx/releases/core#1.19.1)

*** ** * ** ***


```
public final class NotificationCompat.Metric.FixedTime extends NotificationCompat.Metric.MetricValue
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [androidx.core.app.NotificationCompat.Metric.MetricValue](https://developer.android.com/reference/androidx/core/app/NotificationCompat.Metric.MetricValue) ||
|   | ↳ | [androidx.core.app.NotificationCompat.Metric.FixedTime](https://developer.android.com/reference/androidx/core/app/NotificationCompat.Metric.FixedTime) |

*** ** * ** ***

A metric value for showing a clock time.

Only hour and minutes will be displayed (according to the user's preference for 12- or 24- hour time, e.g. 14:30 or 2:30 PM); seconds and lower are truncated.

The time should be in a user-understandable timezone (most likely the device's own, unless it's clear from context that it would be different, such as a flight's arrival time on a different city).

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Metric.FixedTime#FixedTime(java.time.LocalTime)(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/time/LocalTime.html value)` Creates a `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Metric.FixedTime` with the specified `https://developer.android.com/reference/java/time/LocalTime.html`. |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Metric.FixedTime#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object.html obj)` |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/time/LocalTime.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Metric.FixedTime#getValue()()` The `https://developer.android.com/reference/java/time/LocalTime.html` value. |
| `int` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Metric.FixedTime#hashCode()()` |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Metric.FixedTime#toString()()` |

## Public constructors

### FixedTime

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

```
public FixedTime(@NonNull LocalTime value)
```

Creates a `https://developer.android.com/reference/androidx/core/app/NotificationCompat.Metric.FixedTime` with the specified `https://developer.android.com/reference/java/time/LocalTime.html`.

## Public methods

### equals

```
public boolean equals(Object obj)
```

### getValue

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

```
public @NonNull LocalTime getValue()
```

The `https://developer.android.com/reference/java/time/LocalTime.html` value.

### hashCode

```
public int hashCode()
```

### toString

```
public @NonNull String toString()
```