# Room

public final class **Room** extends [Object](https://developer.android.com/reference/java/lang/Object.html)  
implements [Parcelable](https://developer.android.com/reference/android/os/Parcelable.html) **This class is deprecated.**   

rooms are no longer used in the commissioning flow

Representation of a Room (e.g. Kitchen, Living Room).

### Inherited Constant Summary

From interface android.os.Parcelable

|---|---|---|
| int | CONTENTS_FILE_DESCRIPTOR |   |
| int | PARCELABLE_STABILITY_LOCAL |   |
| int | PARCELABLE_STABILITY_VINTF |   |
| int | PARCELABLE_WRITE_RETURN_VALUE |   |

### Public Method Summary

|---|---|
| static [Room](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/Room) | [create](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/Room#create(java.lang.String))([String](https://developer.android.com/reference/java/lang/String.html) name) Returns a Room with the given name. |
| boolean | [equals](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/Room#equals(java.lang.Object))([Object](https://developer.android.com/reference/java/lang/Object.html) other) |
| [String](https://developer.android.com/reference/java/lang/String.html) | [getName](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/Room#getName())() Returns the display name for this room. |
| int | [hashCode](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/Room#hashCode())() |
| void | [writeToParcel](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/Room#writeToParcel(android.os.Parcel,%20int))([Parcel](https://developer.android.com/reference/android/os/Parcel.html) dest, int flags) |

### Inherited Method Summary

From class java.lang.Object

|---|---|
| [Object](https://developer.android.com/reference/java/lang/Object.html) | clone() |
| boolean | equals([Object](https://developer.android.com/reference/java/lang/Object.html) arg0) |
| void | finalize() |
| final [Class](https://developer.android.com/reference/java/lang/Class.html)\<?\> | getClass() |
| int | hashCode() |
| final void | notify() |
| final void | notifyAll() |
| [String](https://developer.android.com/reference/java/lang/String.html) | toString() |
| final void | wait(long arg0, int arg1) |
| final void | wait(long arg0) |
| final void | wait() |

From interface android.os.Parcelable

|---|---|
| abstract int | describeContents() |
| abstract void | writeToParcel([Parcel](https://developer.android.com/reference/android/os/Parcel.html) arg0, int arg1) |

## Public Methods

#### public static [Room](https://developers.home.google.com/android/reference/com/google/android/gms/home/matter/commissioning/Room)
**create** ([String](https://developer.android.com/reference/java/lang/String.html) name)

Returns a Room with the given name.

#### public boolean **equals** ([Object](https://developer.android.com/reference/java/lang/Object.html) other)

#### public [String](https://developer.android.com/reference/java/lang/String.html) **getName** ()

Returns the display name for this room.

#### public int **hashCode** ()

#### public void **writeToParcel** ([Parcel](https://developer.android.com/reference/android/os/Parcel.html) dest, int flags)