Package com.google.cloud.datastore
Class ListValue
- java.lang.Object
-
- com.google.cloud.datastore.Value<List<? extends Value<?>>>
-
- com.google.cloud.datastore.ListValue
-
- All Implemented Interfaces:
Serializable
public final class ListValue extends Value<List<? extends Value<?>>>
A Google Cloud Datastore list value. A list value is a list ofValue
objects.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ListValue.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ListValue.Builder
newBuilder()
Returns a builder forListValue
objects.static ListValue
of(boolean first, boolean... other)
Creates aListValue
object given a number of boolean values.static ListValue
of(double first, double... other)
Creates aListValue
object given a number of double values.static ListValue
of(long first, long... other)
Creates aListValue
object given a number of long values.static ListValue
of(Blob first, Blob... other)
Creates aListValue
object given a number ofBlob
values.static ListValue
of(FullEntity<?> first, FullEntity<?>... other)
Creates aListValue
object given a number ofFullEntity
values.static ListValue
of(Key first, Key... other)
Creates aListValue
object given a number ofKey
values.static ListValue
of(LatLng first, LatLng... other)
Creates aListValue
object given a number ofLatLng
values.static ListValue
of(Value<?> first, Value<?>... other)
Creates aListValue
object given a number ofValue
objects.static ListValue
of(com.google.cloud.Timestamp first, com.google.cloud.Timestamp... other)
Creates aListValue
object given a number ofTimestamp
values.static ListValue
of(String first, String... other)
Creates aListValue
object given a number of string values.static ListValue
of(List<? extends Value<?>> values)
Creates aListValue
object given a list ofValue
objects.ListValue.Builder
toBuilder()
Returns a builder for the list value object.
-
-
-
Method Detail
-
toBuilder
public ListValue.Builder toBuilder()
Returns a builder for the list value object.
-
of
public static ListValue of(List<? extends Value<?>> values)
Creates aListValue
object given a list ofValue
objects.
-
of
public static ListValue of(Value<?> first, Value<?>... other)
Creates aListValue
object given a number ofValue
objects.
-
of
public static ListValue of(String first, String... other)
Creates aListValue
object given a number of string values.
-
of
public static ListValue of(long first, long... other)
Creates aListValue
object given a number of long values.
-
of
public static ListValue of(double first, double... other)
Creates aListValue
object given a number of double values.
-
of
public static ListValue of(boolean first, boolean... other)
Creates aListValue
object given a number of boolean values.
-
of
public static ListValue of(com.google.cloud.Timestamp first, com.google.cloud.Timestamp... other)
Creates aListValue
object given a number ofTimestamp
values.
-
of
public static ListValue of(LatLng first, LatLng... other)
Creates aListValue
object given a number ofLatLng
values.
-
of
public static ListValue of(Key first, Key... other)
Creates aListValue
object given a number ofKey
values.
-
of
public static ListValue of(FullEntity<?> first, FullEntity<?>... other)
Creates aListValue
object given a number ofFullEntity
values.
-
of
public static ListValue of(Blob first, Blob... other)
Creates aListValue
object given a number ofBlob
values.
-
newBuilder
public static ListValue.Builder newBuilder()
Returns a builder forListValue
objects.
-
-