> Documentation index: https://firebase.google.com/docs/reference/llms.txt

# RegexValue


```
public final class RegexValue
```

<br />

*** ** * ** ***

Represents a regular expression type in Firestore documents.

## Summary

| ### Public fields |
|---|---|
| `final String` | `options` |
| `final String` | `pattern` |

| ### Public constructors |
|---|
| `RegexValue(@NonNull String pattern, @NonNull String options)` |

| ### Public methods |
|---|---|
| `boolean` | `equals(Object obj)` Returns true if this `RegexValue` is equal to the provided object. |
| `int` | `hashCode()` |
| `String` | `toString()` |

## Public fields

### options

```
public final String options
```

### pattern

```
public final String pattern
```

## Public constructors

### RegexValue

```
public RegexValue(@NonNull String pattern, @NonNull String options)
```

## Public methods

### equals

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

Returns true if this `RegexValue` is equal to the provided object.

| Parameters |
|---|---|
| `Object obj` | The object to compare against. |

| Returns |
|---|---|
| `boolean` | Whether this `RegexValue` is equal to the provided object. |

### hashCode

```
public int hashCode()
```

### toString

```
public String toString()
```