Modifier and Type | Method and Description |
---|---|
Key.Builder |
append(Boolean value)
Appends a
BOOL value to the key. |
Key.Builder |
append(ByteArray value)
Appends a
BYTES value to the key. |
Key.Builder |
append(Date value)
Appends a
DATE value to the key |
Key.Builder |
append(double value)
Appends a
FLOAT64 value to the key. |
Key.Builder |
append(Double value)
Appends a
FLOAT64 value to the key. |
Key.Builder |
append(long value)
Appends an
INT64 value to the key. |
Key.Builder |
append(Long value)
Appends an
INT64 value to the key. |
Key.Builder |
append(String value)
Appends a
STRING value to the key. |
Key.Builder |
append(Timestamp value)
Appends a
TIMESTAMP value to the key |
Key.Builder |
appendObject(Object value)
Appends an object following the same conversion rules as
Key.of(Object...) . |
Key |
build() |
public Key.Builder append(@Nullable Boolean value)
BOOL
value to the key.public Key.Builder append(long value)
INT64
value to the key.public Key.Builder append(@Nullable Long value)
INT64
value to the key.public Key.Builder append(double value)
FLOAT64
value to the key.public Key.Builder append(@Nullable Double value)
FLOAT64
value to the key.public Key.Builder append(@Nullable String value)
STRING
value to the key.public Key.Builder append(@Nullable ByteArray value)
BYTES
value to the key.public Key.Builder append(@Nullable Timestamp value)
TIMESTAMP
value to the keypublic Key.Builder append(@Nullable Date value)
DATE
value to the keypublic Key.Builder appendObject(@Nullable Object value)
Key.of(Object...)
. When
using the Builder
, most code should prefer using the strongly typed append(...)
methods, for both performance and the benefit of compile-time checking.public Key build()
Copyright © 2019 Google LLC. All rights reserved.