/** * Determine if the given entry is a descendant of this entry. Descendancy is determined by the * name of the descendant starting with this entry's name. * * @param desc Entry to be checked as a descendent of this. * @return True if entry is a descendant of this. */ public boolean isDescendent(TarArchiveEntry desc) { return desc.getName().startsWith(getName()); }
/** * Determine if the two entries are equal. Equality is determined by the header names being equal. * * @param it Entry to be checked for equality. * @return True if the entries are equal. */ public boolean equals(TarArchiveEntry it) { return getName().equals(it.getName()); }