Module swim.uri
Package swim.uri

Class UriPathBuilder

java.lang.Object
swim.uri.UriPathBuilder
All Implemented Interfaces:
Builder<String,UriPath>

public final class UriPathBuilder extends Object implements Builder<String,UriPath>
  • Constructor Details

    • UriPathBuilder

      public UriPathBuilder()
  • Method Details

    • isEmpty

      public boolean isEmpty()
    • size

      public int size()
    • add

      public boolean add(String component)
      Description copied from interface: Builder
      Adds a single input value to this builder, returning true if the state of the builder changed.
      Specified by:
      add in interface Builder<String,UriPath>
    • addAll

      public boolean addAll(Collection<? extends String> components)
      Description copied from interface: Builder
      Adds multiple input values to this builder, returning true if the state of the builder changed.
      Specified by:
      addAll in interface Builder<String,UriPath>
    • bind

      public UriPath bind()
      Description copied from interface: Builder
      Returns the output result of this builder.
      Specified by:
      bind in interface Builder<String,UriPath>
    • addSlash

      public boolean addSlash()
    • addSegment

      public boolean addSegment(String segment)
    • addPath

      public boolean addPath(UriPath path)
    • pop

      public UriPath pop()