# Class ListValue (3.1.0)

3.1.0 (latest) 2.40.0 2.37.0 2.36.0 2.34.0 2.33.3 2.32.3 2.31.4 2.30.0 2.29.1 2.28.2 2.27.1 2.26.4 2.25.2 2.24.3 2.23.0 2.22.0 2.21.3 2.20.2 2.19.2 2.18.5 2.17.6

    public final class ListValue extends Value<List<? extends Value<?>>>

A Google Cloud Datastore list value. A list value is a list of [Value](https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.Value) objects.

## Inheritance

[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \> [Value](https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.Value) \> ListValue

## Inherited Members

[Value.equals(Object)](https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.Value#com_google_cloud_datastore_Value_equals_java_lang_Object_) [Value.excludeFromIndexes()](https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.Value#com_google_cloud_datastore_Value_excludeFromIndexes__) [Value.fromPb(Value)](https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.Value#com_google_cloud_datastore_Value_fromPb_com_google_datastore_v1_Value_) [Value.get()](https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.Value#com_google_cloud_datastore_Value_get__) [Value.getType()](https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.Value#com_google_cloud_datastore_Value_getType__) [Value.hashCode()](https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.Value#com_google_cloud_datastore_Value_hashCode__) [Value.toBuilder()](https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.Value#com_google_cloud_datastore_Value_toBuilder__) [Value.toString()](https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.Value#com_google_cloud_datastore_Value_toString__) [Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) [Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) [Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) [Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) [Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) [Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) [Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) [Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)

## Static Methods

### newBuilder()

    public static ListValue.Builder newBuilder()

Returns a builder for `ListValue` objects.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.ListValue.Builder` |   |

### of(boolean first, boolean\[\] other)

    public static ListValue of(boolean first, boolean[] other)

Creates a `ListValue` object given a number of boolean values.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `first` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |
| `other` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.ListValue` |   |

### of(Timestamp first, Timestamp\[\] other)

    public static ListValue of(Timestamp first, Timestamp[] other)

Creates a `ListValue` object given a number of `Timestamp` values.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `first` | `com.google.cloud.Timestamp` |
| `other` | `com.google.cloud.Timestamp[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.ListValue` |   |

### of(Blob first, Blob\[\] other)

    public static ListValue of(Blob first, Blob[] other)

Creates a `ListValue` object given a number of `Blob` values.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `first` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.Blob` |
| `other` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.Blob[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.ListValue` |   |

### of(FullEntity\<?\> first, FullEntity\<?\>\[\] other)

    public static ListValue of(FullEntity<?> first, FullEntity<?>[] other)

Creates a `ListValue` object given a number of `FullEntity` values.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `first` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.FullEntity<?>` |
| `other` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.FullEntity<?>[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.ListValue` |   |

### of(Key first, Key\[\] other)

    public static ListValue of(Key first, Key[] other)

Creates a `ListValue` object given a number of `Key` values.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `first` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.Key` |
| `other` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.Key[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.ListValue` |   |

### of(LatLng first, LatLng\[\] other)

    public static ListValue of(LatLng first, LatLng[] other)

Creates a `ListValue` object given a number of `LatLng` values.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `first` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.LatLng` |
| `other` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.LatLng[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.ListValue` |   |

### of(Value\<?\> first, Value\<?\>\[\] other)

    public static ListValue of(Value<?> first, Value<?>[] other)

Creates a `ListValue` object given a number of `Value` objects.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `first` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.Value<?>` |
| `other` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.Value<?>[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.ListValue` |   |

### of(double first, double\[\] other)

    public static ListValue of(double first, double[] other)

Creates a `ListValue` object given a number of double values.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `first` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |
| `other` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.ListValue` |   |

### of(String first, String\[\] other)

    public static ListValue of(String first, String[] other)

Creates a `ListValue` object given a number of string values.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `first` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `other` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.ListValue` |   |

### of(List\<? extends Value\<?\>\> values)

    public static ListValue of(List<? extends Value<?>> values)

Creates a `ListValue` object given a list of `Value` objects.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `values` | `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.datastore.Value<?>>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.ListValue` |   |

### of(long first, long\[\] other)

    public static ListValue of(long first, long[] other)

Creates a `ListValue` object given a number of long values.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `first` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |
| `other` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.ListValue` |   |

## Constructors

### ListValue(Value\<?\> first, Value\<?\>\[\] other)

    public ListValue(Value<?> first, Value<?>[] other)

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `first` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.Value<?>` |
| `other` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.Value<?>[]` |

### ListValue(List\<? extends Value\<?\>\> values)

    public ListValue(List<? extends Value<?>> values)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `values` | `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.datastore.Value<?>>` |

## Methods

### toBuilder()

    public ListValue.Builder toBuilder()

Returns a builder for the list value object.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.ListValue.Builder` |   |

**Overrides** [Value\<V\>.toBuilder()](https://docs.cloud.google.com/java/docs/reference/google-cloud-datastore/latest/com.google.cloud.datastore.Value#com_google_cloud_datastore_Value_toBuilder__)