Class ForwardPath

java.lang.Object
com.googlecode.objectify.impl.ForwardPath

public class ForwardPath extends Object
This is a wrapper for a Path that makes it backwards; instead of going from tail to head, it has links from head to tail. This is sometimes useful for forward traversal of a path.
Author:
Jeff Schnitzer invalid input: '<'[email protected]>
  • Constructor Details

    • ForwardPath

      public ForwardPath(Path path)
  • Method Details

    • of

      public static ForwardPath of(Path path)
      Recursive method which reverses the path into a ForwardPath.
      Parameters:
      path - cannot be the root path.
    • getPath

      public Path getPath()
      Returns:
      the real full path to this place
    • getNext

      public ForwardPath getNext()
      Returns:
      the next path in the forward traversal
    • getFinalPath

      public Path getFinalPath()
      Get the complete path in this chain, typically for error messages or debugging
    • toString

      public String toString()
      Overrides:
      toString in class Object