public abstract static class BaseEntity.Builder<K extends IncompleteKey,B extends BaseEntity.Builder<K,B>> extends Object
Modifier and Type | Method and Description |
---|---|
abstract BaseEntity<K> |
build() |
B |
clear()
Clears all the properties.
|
protected K |
key() |
B |
remove(String name)
Removes a property with the given
name . |
B |
set(String name,
Blob value)
Sets a property of type
BlobValue . |
B |
set(String name,
Blob first,
Blob second,
Blob... others)
Sets a list property containing elements of type
BlobValue . |
B |
set(String name,
boolean value)
Sets a property of type
BooleanValue . |
B |
set(String name,
boolean first,
boolean second,
boolean... others)
Sets a list property containing elements of type
BooleanValue . |
B |
set(String name,
double value)
Sets a property of type
DoubleValue . |
B |
set(String name,
double first,
double second,
double... others)
Sets a list property containing elements of type
DoubleValue . |
B |
set(String name,
FullEntity<?> value)
Sets a property of type
EntityValue . |
B |
set(String name,
FullEntity<?> first,
FullEntity<?> second,
FullEntity<?>... others)
Sets a list property containing elements of type
EntityValue . |
B |
set(String name,
Key value)
Sets a property of type
KeyValue . |
B |
set(String name,
Key first,
Key second,
Key... others)
Sets a list property containing elements of type
KeyValue . |
B |
set(String name,
LatLng value)
Sets a property of type
LatLng . |
B |
set(String name,
LatLng first,
LatLng second,
LatLng... others)
Sets a list property containing elements of type
LatLng . |
B |
set(String name,
List<? extends Value<?>> values)
Sets a property of type
ListValue . |
B |
set(String name,
long value)
Sets a property of type
LongValue . |
B |
set(String name,
long first,
long second,
long... others)
Sets a list property containing elements of type
LongValue . |
B |
set(String name,
String value)
Sets a property of type
StringValue . |
B |
set(String name,
String first,
String second,
String... others)
Sets a list property containing elements of type
StringValue . |
B |
set(String name,
com.google.cloud.Timestamp value)
Sets a property of type
TimestampValue . |
B |
set(String name,
com.google.cloud.Timestamp first,
com.google.cloud.Timestamp second,
com.google.cloud.Timestamp... others)
Sets a list property containing elements of type
TimestampValue . |
B |
set(String name,
Value<?> value)
Sets a property.
|
B |
set(String name,
Value<?> first,
Value<?> second,
Value<?>... others)
Sets a property of type
ListValue . |
B |
setKey(K key)
Sets the key for the entity.
|
B |
setNull(String name)
Sets a property of type
NullValue . |
protected Map<String,Value<?>> |
setProperties() |
protected B |
setProperties(Map<String,Value<?>> properties) |
protected K key()
public B clear()
public B set(String name, Value<?> value)
name
- name of the propertyvalue
- value associated with the propertypublic B set(String name, String value)
StringValue
.name
- name of the propertyvalue
- value associated with the propertypublic B set(String name, String first, String second, String... others)
StringValue
.name
- name of the propertyfirst
- the first string in the listsecond
- the second string in the listothers
- other strings in the listpublic B set(String name, long value)
LongValue
.name
- name of the propertyvalue
- value associated with the propertypublic B set(String name, long first, long second, long... others)
LongValue
.name
- name of the propertyfirst
- the first long in the listsecond
- the second long in the listothers
- other longs in the listpublic B set(String name, double value)
DoubleValue
.name
- name of the propertyvalue
- value associated with the propertypublic B set(String name, double first, double second, double... others)
DoubleValue
.name
- name of the propertyfirst
- the first double in the listsecond
- the second double in the listothers
- other doubles in the listpublic B set(String name, boolean value)
BooleanValue
.name
- name of the propertyvalue
- value associated with the propertypublic B set(String name, boolean first, boolean second, boolean... others)
BooleanValue
.name
- name of the propertyfirst
- the first boolean in the listsecond
- the second boolean in the listothers
- other booleans in the listpublic B set(String name, com.google.cloud.Timestamp value)
TimestampValue
.name
- name of the propertyvalue
- value associated with the propertypublic B set(String name, com.google.cloud.Timestamp first, com.google.cloud.Timestamp second, com.google.cloud.Timestamp... others)
TimestampValue
.name
- name of the propertyfirst
- the first Timestamp
in the listsecond
- the second Timestamp
in the listothers
- other Timestamp
s in the listpublic B set(String name, LatLng value)
LatLng
.name
- name of the propertyvalue
- value associated with the propertypublic B set(String name, LatLng first, LatLng second, LatLng... others)
LatLng
.public B set(String name, Key value)
KeyValue
.name
- name of the propertyvalue
- value associated with the propertypublic B set(String name, Key first, Key second, Key... others)
KeyValue
.public B set(String name, FullEntity<?> value)
EntityValue
.name
- name of the propertyvalue
- value associated with the propertypublic B set(String name, FullEntity<?> first, FullEntity<?> second, FullEntity<?>... others)
EntityValue
.name
- name of the propertyfirst
- the first FullEntity
in the listsecond
- the second FullEntity
in the listothers
- other entities in the listpublic B set(String name, List<? extends Value<?>> values)
ListValue
.name
- name of the propertyvalues
- list of values associated with the propertypublic B set(String name, Value<?> first, Value<?> second, Value<?>... others)
ListValue
.name
- name of the propertyfirst
- the first value in the listsecond
- the second value in the listothers
- other values in the listpublic B set(String name, Blob value)
BlobValue
.name
- name of the propertyvalue
- value associated with the propertypublic B set(String name, Blob first, Blob second, Blob... others)
BlobValue
.public B setNull(String name)
NullValue
.name
- name of the propertypublic abstract BaseEntity<K> build()
Copyright © 2019 Google LLC. All rights reserved.