Package com.google.cloud.datastore
Class PathElement
- java.lang.Object
-
- com.google.cloud.datastore.PathElement
-
- All Implemented Interfaces:
Serializable
public final class PathElement extends Object implements Serializable
Represents a single element in a key's path.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)LonggetId()Returns the ID of this path element.StringgetKind()Returns the kind of this path element.StringgetName()Returns the name of this path element.ObjectgetNameOrId()inthashCode()booleanhasId()booleanhasName()static PathElementof(String kind, long id)static PathElementof(String kind, String name)StringtoString()
-
-
-
Method Detail
-
getKind
public String getKind()
Returns the kind of this path element.
-
hasId
public boolean hasId()
-
getId
public Long getId()
Returns the ID of this path element.
-
hasName
public boolean hasName()
-
getName
public String getName()
Returns the name of this path element.
-
getNameOrId
public Object getNameOrId()
-
of
public static PathElement of(String kind, String name)
-
of
public static PathElement of(String kind, long id)
-
-