Package io.nosqlbench.nb.api.content
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.PathasPath()booleanequals(java.lang.Object o)java.nio.CharBuffergetCharBuffer()java.nio.file.PathgetLocation()java.net.URIgetURI()inthashCode()java.lang.StringtoString()
-
Constructor Details
-
PathContent
public PathContent(java.nio.file.Path path)
-
-
Method Details
-
getLocation
public java.nio.file.Path getLocation()- Specified by:
getLocationin interfaceContent<java.nio.file.Path>
-
getURI
public java.net.URI getURI() -
getCharBuffer
public java.nio.CharBuffer getCharBuffer()- Specified by:
getCharBufferin interfaceContent<java.nio.file.Path>
-
asPath
public java.nio.file.Path asPath() -
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-