Class PathElement (2.4.0)

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
NameDescription
kindString
nameString
Returns
TypeDescription
PathElement

of(String kind, long id)

public static PathElement of(String kind, long id)
Parameters
NameDescription
kindString
idlong
Returns
TypeDescription
PathElement

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getId()

public Long getId()

Returns the ID of this path element.

Returns
TypeDescription
Long

getKind()

public String getKind()

Returns the kind of this path element.

Returns
TypeDescription
String

getName()

public String getName()

Returns the name of this path element.

Returns
TypeDescription
String

getNameOrId()

public Object getNameOrId()

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

Returns
TypeDescription
Object

hasId()

public boolean hasId()
Returns
TypeDescription
boolean

hasName()

public boolean hasName()
Returns
TypeDescription
boolean

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toString()

public String toString()
Returns
TypeDescription
String
Overrides