Class PathContent

java.lang.Object
io.nosqlbench.nb.api.content.PathContent
All Implemented Interfaces:
Content<java.nio.file.Path>, java.lang.Comparable<Content<?>>, java.util.function.Supplier<java.lang.CharSequence>

public class PathContent
extends java.lang.Object
implements Content<java.nio.file.Path>
PathContent provides the Path-centric way of accessing resolved content from the URIs API.
  • Constructor Summary

    Constructors 
    Constructor Description
    PathContent​(java.nio.file.Path path)  
  • Method Summary

    Modifier and Type Method Description
    java.nio.file.Path asPath()  
    boolean equals​(java.lang.Object o)  
    java.nio.CharBuffer getCharBuffer()  
    java.nio.file.Path getLocation()  
    java.net.URI getURI()  
    int hashCode()  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface io.nosqlbench.nb.api.content.Content

    asString, compareTo, get, getInputStream, getReader, getURL
  • Constructor Details

    • PathContent

      public PathContent​(java.nio.file.Path path)
  • Method Details

    • getLocation

      public java.nio.file.Path getLocation()
      Specified by:
      getLocation in interface Content<java.nio.file.Path>
    • getURI

      public java.net.URI getURI()
      Specified by:
      getURI in interface Content<java.nio.file.Path>
    • getCharBuffer

      public java.nio.CharBuffer getCharBuffer()
      Specified by:
      getCharBuffer in interface Content<java.nio.file.Path>
    • asPath

      public java.nio.file.Path asPath()
      Specified by:
      asPath in interface Content<java.nio.file.Path>
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

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

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object