public final class HashedDir extends HashedEntry
| Modifier and Type | Class and Description |
|---|---|
static class |
HashedDir.Diff |
static class |
HashedDir.WalkAction |
static interface |
HashedDir.WalkCallback |
HashedEntry.TypeStreamObject.Adapter<O extends StreamObject>flag| Constructor and Description |
|---|
HashedDir() |
HashedDir(HInput input) |
HashedDir(java.nio.file.Path dir,
FileNameMatcher matcher,
boolean allowSymlinks,
boolean digest) |
| Modifier and Type | Method and Description |
|---|---|
HashedDir.Diff |
compare(HashedDir other,
FileNameMatcher matcher) |
HashedDir.Diff |
diff(HashedDir other,
FileNameMatcher matcher) |
HashedEntry |
getEntry(java.lang.String name) |
HashedEntry.Type |
getType() |
boolean |
isEmpty() |
java.util.Map<java.lang.String,HashedEntry> |
map() |
void |
remove(java.lang.String name) |
void |
removeR(java.lang.String name) |
HashedEntry |
resolve(java.lang.Iterable<java.lang.String> path) |
HashedDir |
sideCompare(HashedDir other,
FileNameMatcher matcher,
java.util.Deque<java.lang.String> path,
boolean mismatchList) |
long |
size() |
void |
walk(java.lang.CharSequence separator,
HashedDir.WalkCallback callback) |
void |
write(HOutput output) |
writepublic HashedDir()
public HashedDir(HInput input) throws java.io.IOException
java.io.IOExceptionpublic HashedDir(java.nio.file.Path dir,
FileNameMatcher matcher,
boolean allowSymlinks,
boolean digest)
throws java.io.IOException
java.io.IOExceptionpublic HashedDir.Diff diff(HashedDir other, FileNameMatcher matcher)
public HashedDir.Diff compare(HashedDir other, FileNameMatcher matcher)
public void remove(java.lang.String name)
public void removeR(java.lang.String name)
public HashedEntry getEntry(java.lang.String name)
public HashedEntry.Type getType()
getType in class HashedEntrypublic boolean isEmpty()
public java.util.Map<java.lang.String,HashedEntry> map()
public HashedEntry resolve(java.lang.Iterable<java.lang.String> path)
public HashedDir sideCompare(HashedDir other, FileNameMatcher matcher, java.util.Deque<java.lang.String> path, boolean mismatchList)
public long size()
size in class HashedEntrypublic void write(HOutput output) throws java.io.IOException
write in class StreamObjectjava.io.IOExceptionpublic void walk(java.lang.CharSequence separator,
HashedDir.WalkCallback callback)
throws java.io.IOException
java.io.IOException