de.schlichtherle.truezip.fs
Class FsEntry
java.lang.Object
de.schlichtherle.truezip.fs.FsEntry
- All Implemented Interfaces:
- Entry
- Direct Known Subclasses:
- FsDecoratingEntry
public abstract class FsEntry
- extends Object
- implements Entry
An abstract file system entry is an entry which can list directory members.
Optionally, it may also provide access to another entry which is decorated
by it.
- Author:
- Christian Schlichtherle
| Fields inherited from interface de.schlichtherle.truezip.entry.Entry |
NULL, UNKNOWN |
FsEntry
public FsEntry()
getName
@NonNull
public abstract String getName()
- Returns a string representation of the
file system entry name.
- Specified by:
getName in interface Entry
- Returns:
- A string representation of the
file system entry name. - See Also:
EntryName.create(java.lang.String, java.lang.String)
getMembers
@Nullable
public abstract Set<String> getMembers()
- If this is not a directory entry,
null is returned.
Otherwise, an unmodifiable set of strings is returned which
represent the base names of the members of this directory entry.
equals
public final boolean equals(Object that)
- Two file system entries are considered equal if and only if they are
identical.
This can't get overriden.
- Overrides:
equals in class Object
hashCode
public final int hashCode()
- Returns a hash code which is consistent with
equals(java.lang.Object).
This can't get overriden.
- Overrides:
hashCode in class Object
toString
public String toString()
- Returns a string representation of this object for debugging and logging
purposes.
- Overrides:
toString in class Object
Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.