Class BaseEntity<K> (2.19.1)
Stay organized with collections
Save and categorize content based on your preferences.
public abstract class BaseEntity<K> implements Serializable
Inheritance
Object >
BaseEntity<K>
Type Parameter |
Name |
Description |
K |
|
Methods
<K>getEntity(String name)
public FullEntity<K> <K>getEntity(String name)
Returns the property value as an entity.
Parameter |
Name |
Description |
name |
String
|
<T>getList(String name)
public List<T> <T>getList(String name)
Returns the property value as a list of values.
Parameter |
Name |
Description |
name |
String
|
Returns |
Type |
Description |
List<T> |
|
<V>getValue(String name)
public V <V>getValue(String name)
Returns the Value for the given property name
.
Parameter |
Name |
Description |
name |
String
|
Returns |
Type |
Description |
V |
|
contains(String name)
public boolean contains(String name)
Returns true
if the entity contains a property with the given name
.
Parameter |
Name |
Description |
name |
String
|
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getBlob(String name)
public Blob getBlob(String name)
Returns the property value as a blob.
Parameter |
Name |
Description |
name |
String
|
Returns |
Type |
Description |
Blob |
|
getBoolean(String name)
public boolean getBoolean(String name)
Returns the property value as a boolean.
Parameter |
Name |
Description |
name |
String
|
getDouble(String name)
public double getDouble(String name)
Returns the property value as a double.
Parameter |
Name |
Description |
name |
String
|
Returns |
Type |
Description |
double |
|
getKey()
Returns the associated key or null if it does not have one.
Returns |
Type |
Description |
K |
|
getKey(String name)
public Key getKey(String name)
Returns the property value as a Key.
Parameter |
Name |
Description |
name |
String
|
Returns |
Type |
Description |
Key |
|
getLatLng(String name)
public LatLng getLatLng(String name)
Returns the property value as a LatLng.
Parameter |
Name |
Description |
name |
String
|
Returns |
Type |
Description |
LatLng |
|
getLong(String name)
public long getLong(String name)
Returns the property value as long.
Parameter |
Name |
Description |
name |
String
|
Returns |
Type |
Description |
long |
|
getNames()
public Set<String> getNames()
Returns the properties name.
getProperties()
public Map<String,Value<?>> getProperties()
getString(String name)
public String getString(String name)
Returns the property value as a string.
Parameter |
Name |
Description |
name |
String
|
Returns |
Type |
Description |
String |
|
getTimestamp(String name)
public Timestamp getTimestamp(String name)
Returns the property value as a Timestamp.
Parameter |
Name |
Description |
name |
String
|
Returns |
Type |
Description |
com.google.cloud.Timestamp |
|
hasKey()
Returns true if entity has a non-null key.
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
isNull(String name)
public boolean isNull(String name)
Returns true if property is an instance of NullValue.
Parameter |
Name |
Description |
name |
String
|
toString()
Returns |
Type |
Description |
String |
|
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-09-18 UTC."}