public abstract class Entry
extends java.lang.Object
Constructor and Description |
---|
Entry(java.io.DataInput in) |
Entry(int nameId) |
Entry(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
addChild(Entry child) |
void |
addChildren(java.util.Collection<? extends Entry> children) |
protected static int |
calcNameHash(java.lang.CharSequence name) |
protected abstract void |
collectCreatedDifferences(java.util.List<? super Difference> result,
boolean isRightContentCurrent) |
protected abstract void |
collectDeletedDifferences(java.util.List<? super Difference> result,
boolean isRightContentCurrent) |
protected abstract void |
collectDifferencesWith(Entry e,
java.util.List<? super Difference> result,
boolean isRightContentCurrent) |
abstract Entry |
copy() |
Entry |
findChild(java.lang.String name) |
Entry |
findEntry(java.lang.String relativePath) |
java.util.List<Entry> |
getChildren() |
Content |
getContent() |
static java.util.List<Difference> |
getDifferencesBetween(Entry left,
Entry right) |
static java.util.List<Difference> |
getDifferencesBetween(Entry left,
Entry right,
boolean isRightContentCurrent) |
Entry |
getEntry(java.lang.String path) |
java.lang.String |
getName() |
int |
getNameHash() |
int |
getNameId() |
java.lang.CharSequence |
getNameSequence() |
Entry |
getParent() |
java.lang.String |
getPath() |
abstract long |
getTimestamp() |
boolean |
hasEntry(java.lang.String path) |
boolean |
hasUnavailableContent() |
boolean |
hasUnavailableContent(java.util.List<? super Entry> entriesWithUnavailableContent) |
boolean |
isDirectory() |
boolean |
isOutdated(long timestamp) |
boolean |
isReadOnly() |
boolean |
nameEquals(java.lang.String name) |
boolean |
pathEquals(java.lang.String path) |
void |
removeChild(Entry child) |
void |
setContent(Content newContent,
long timestamp) |
void |
setName(java.lang.String newName) |
protected void |
setParent(DirectoryEntry parent) |
void |
setReadOnly(boolean isReadOnly) |
protected static int |
toNameId(java.lang.String name) |
java.lang.String |
toString() |
void |
write(java.io.DataOutput out) |
public Entry(java.lang.String name)
public Entry(int nameId)
public Entry(java.io.DataInput in) throws java.io.IOException
java.io.IOException
protected static int toNameId(java.lang.String name)
public void write(java.io.DataOutput out) throws java.io.IOException
java.io.IOException
public java.lang.String getName()
public java.lang.CharSequence getNameSequence()
public int getNameId()
public int getNameHash()
public java.lang.String getPath()
public boolean nameEquals(java.lang.String name)
public boolean pathEquals(java.lang.String path)
public abstract long getTimestamp()
public boolean isReadOnly()
public void setReadOnly(boolean isReadOnly)
public boolean isOutdated(long timestamp)
public Content getContent()
public boolean hasUnavailableContent()
public boolean hasUnavailableContent(java.util.List<? super Entry> entriesWithUnavailableContent)
public Entry getParent()
protected void setParent(DirectoryEntry parent)
public boolean isDirectory()
public void addChild(Entry child)
public void addChildren(java.util.Collection<? extends Entry> children)
public void removeChild(Entry child)
public java.util.List<Entry> getChildren()
public Entry findChild(java.lang.String name)
protected static int calcNameHash(java.lang.CharSequence name)
public boolean hasEntry(java.lang.String path)
public Entry getEntry(java.lang.String path)
public Entry findEntry(java.lang.String relativePath)
public abstract Entry copy()
public void setName(java.lang.String newName)
public void setContent(Content newContent, long timestamp)
public static java.util.List<Difference> getDifferencesBetween(Entry left, Entry right)
public static java.util.List<Difference> getDifferencesBetween(Entry left, Entry right, boolean isRightContentCurrent)
protected abstract void collectDifferencesWith(Entry e, java.util.List<? super Difference> result, boolean isRightContentCurrent)
protected abstract void collectCreatedDifferences(java.util.List<? super Difference> result, boolean isRightContentCurrent)
protected abstract void collectDeletedDifferences(java.util.List<? super Difference> result, boolean isRightContentCurrent)
public java.lang.String toString()
toString
in class java.lang.Object