Class PathRef<X>

java.lang.Object
org.dellroad.querystream.jpa.PathRef<X>
Type Parameters:
X - stream item type
All Implemented Interfaces:
Ref<X,Path<X>>

public class PathRef<X> extends Object
A Ref that's known to be a Path.
  • Constructor Details

    • PathRef

      public PathRef()
      Create an instance with no name.
    • PathRef

      public PathRef(String name)
      Create an instance with the given name.

      The name is only used for debugging purposes.

      Parameters:
      name - reference name, or null for none
  • Method Details

    • bind

      public Path<X> bind(Path<X> value)
      Description copied from interface: Ref
      Bind the given value to this reference.
      Specified by:
      bind in interface Ref<X,S extends Selection<X>>
      Parameters:
      value - value to bind
      Returns:
      same value
    • get

      public Path<X> get()
      Description copied from interface: Ref
      Get the bound value.
      Specified by:
      get in interface Ref<X,S extends Selection<X>>
      Returns:
      bound value
    • unbind

      public void unbind()
      Description copied from interface: Ref
      Unbind the bound value, if any.
      Specified by:
      unbind in interface Ref<X,S extends Selection<X>>
    • isBound

      public boolean isBound()
      Description copied from interface: Ref
      Determine if this instance is bound.
      Specified by:
      isBound in interface Ref<X,S extends Selection<X>>
      Returns:
      true if this instance is bound, otherwise false
    • toString

      public String toString()
      Overrides:
      toString in class Object