cleanup
This commit is contained in:
@@ -9,13 +9,11 @@ import org.lucares.pdb.api.Tags;
|
|||||||
public class Doc {
|
public class Doc {
|
||||||
private final Tags tags;
|
private final Tags tags;
|
||||||
private final byte[] path;
|
private final byte[] path;
|
||||||
//private final Path path;
|
|
||||||
|
|
||||||
public Doc(final Tags tags, final Path path) {
|
public Doc(final Tags tags, final Path path) {
|
||||||
super();
|
super();
|
||||||
this.tags = tags;
|
this.tags = tags;
|
||||||
this.path = path.toString().getBytes(StandardCharsets.UTF_8);
|
this.path = path.toString().getBytes(StandardCharsets.UTF_8);
|
||||||
//this.path=path;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public Tags getTags() {
|
public Tags getTags() {
|
||||||
@@ -24,12 +22,10 @@ public class Doc {
|
|||||||
|
|
||||||
public Path getPath() {
|
public Path getPath() {
|
||||||
return Paths.get(new String(path, StandardCharsets.UTF_8));
|
return Paths.get(new String(path, StandardCharsets.UTF_8));
|
||||||
//return path;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "Doc [tags=" + tags + ", path=" + getPath() + "]";
|
return "Doc [tags=" + tags + ", path=" + getPath() + "]";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user