Package com.googlecode.objectify.impl
Class Path
java.lang.Object
com.googlecode.objectify.impl.Path
Path represents the individual steps from the root object to the current property.
- Author:
- Jeff Schnitzer invalid input: '<'[email protected]>
-
Method Summary
Modifier and TypeMethodDescriptionint
depth()
ROOT is 0, top level Entity properties are 1, embedded things are higher.boolean
Compares on complete pathGet the previous path; for root this will be nullGet this segment of the path.int
hashCode()
Generates hash code for complete pathboolean
isRoot()
static Path
root()
throwIllegalState
(String message) Convenient way to include path location in the exception message.throwIllegalState
(String message, Throwable cause) Convenient way to include path location in the exception message.throwNullPointer
(String message) Convenient way to include path location in the exception message.Create the full x.y.z stringtoString()
-
Method Details
-
root
-
toPathString
Create the full x.y.z string -
extend
-
getSegment
Get this segment of the path. For root this will be null. -
getPrevious
Get the previous path; for root this will be null -
isRoot
public boolean isRoot() -
toString
-
equals
Compares on complete path -
hashCode
public int hashCode()Generates hash code for complete path -
throwIllegalState
Convenient way to include path location in the exception message. Never returns. -
throwIllegalState
Convenient way to include path location in the exception message. Never returns. -
throwNullPointer
Convenient way to include path location in the exception message. Never returns. -
depth
public int depth()ROOT is 0, top level Entity properties are 1, embedded things are higher.
-