Class PathFence.Builder

java.lang.Object
org.apache.commons.text.lookup.PathFence.Builder
All Implemented Interfaces:
Supplier<PathFence>
Enclosing class:
PathFence

static final class PathFence.Builder extends Object implements Supplier<PathFence>
Builds PathFence instances.
  • Field Details

    • EMPTY

      private static final Path[] EMPTY
      The empty Path array.
    • roots

      private Path[] roots
      A fence is made of root Paths.
  • Constructor Details

    • Builder

      Builder()
  • Method Details

    • get

      public PathFence get()
      Specified by:
      get in interface Supplier<PathFence>
    • setRoots

      PathFence.Builder setRoots(Path... paths)
      Sets the paths that delineate this fence.
      Parameters:
      paths - the paths that delineate this fence.
      Returns:
      this instance.