Class PathMatch<V>

java.lang.Object
com.aoapps.net.pathspace.PathMatch<V>

public class PathMatch<V> extends Object
The result of a call to PathSpace.get(com.aoapps.net.Path).
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Two matches are equal when they have the same prefix (by .equals), prefixPath (by .equals), subPath (by .equals), and value (by identity).
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getPrefix

      public Prefix getPrefix()
      Gets the prefix that matched the lookup.
    • getPrefixPath

      public Path getPrefixPath()
      Gets the portion of the lookup path that matches the prefix.
    • getPath

      public Path getPath()
      Gets the portion of the lookup path past the prefix path.
    • getValue

      public V getValue()
      Gets the value associated with the prefix.