# Barcode.Address

public static class **Barcode.Address** extends [Object](https://developer.android.com/reference/java/lang/Object.html)  
An address.

### Nested Class Summary

|---|---|---|---|
| @interface | [Barcode.Address.AddressType](https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode.Address.AddressType) || Address type constants. |

### Constant Summary

|---|---|---|
| int | [TYPE_HOME](https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode.Address#TYPE_HOME) | Home address. |
| int | [TYPE_UNKNOWN](https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode.Address#TYPE_UNKNOWN) | Unknown address type. |
| int | [TYPE_WORK](https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode.Address#TYPE_WORK) | Work address. |

### Public Method Summary

|---|---|
| [String\[\]](https://developer.android.com/reference/java/lang/String.html) | [getAddressLines](https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode.Address#getAddressLines())() Gets formatted address, multiple lines when appropriate. |
| int | [getType](https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode.Address#getType())() Gets type of the address. |

### 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() |

## Constants

#### public static final int
**TYPE_HOME**

Home address.
Constant Value: 2

#### public static final int
**TYPE_UNKNOWN**

Unknown address type.
Constant Value: 0

#### public static final int
**TYPE_WORK**

Work address.
Constant Value: 1

## Public Methods

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

Gets formatted address, multiple lines when appropriate. This field always contains
at least one line.

#### public int **getType** ()

Gets type of the address.

See also `https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode.Address.AddressType`