Class PathElement (2.25.1)

public final class PathElement implements Serializable

Represents a single element in a key's path.

Inheritance

Object > PathElement

Implements

Serializable

Static Methods

of(String kind, String name)

public static PathElement of(String kind, String name)
Parameters
Name Description
kind String
name String
Returns
Type Description
PathElement

of(String kind, long id)

public static PathElement of(String kind, long id)
Parameters
Name Description
kind String
id long
Returns
Type Description
PathElement

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getId()

public Long getId()

Returns the ID of this path element.

Returns
Type Description
Long

getKind()

public String getKind()

Returns the kind of this path element.

Returns
Type Description
String

getName()

public String getName()

Returns the name of this path element.

Returns
Type Description
String

getNameOrId()

public Object getNameOrId()

Returns the path element's ID (as Long) or name (as String). Never null.

Returns
Type Description
Object

hasId()

public boolean hasId()
Returns
Type Description
boolean

hasName()

public boolean hasName()
Returns
Type Description
boolean

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

toString()

public String toString()
Returns
Type Description
String
Overrides