Class SplitPath

Object
SplitPath

public final class SplitPath extends Object
A path that has been split into two components: a root and a remainder.

This is an immutable class.

Author:
Owen Feehan
  • Constructor Details

    • SplitPath

      public SplitPath(Path root, Path remainder)
      Creates a new SplitPath instance.
      Parameters:
      root - The first component, the root of the path.
      remainder - The second component, what remains in the path.
  • Method Details

    • combined

      public Path combined()
      A path that combines the root together with the remainder.
      Returns:
      the remainder joined to the root.
    • getRoot

      public Path getRoot()
      The first component, the root of the path.
    • getRemainder

      public Path getRemainder()
      The second component, what remains in the path.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object